@@ -41,7 +41,7 @@ describe('52. connClose.js', function() {
41
41
const connection = await oracledb . getConnection ( dbConfig ) ;
42
42
const defaultSize = 30 ;
43
43
assert . strictEqual ( connection . stmtCacheSize , defaultSize ) ;
44
- await connection . release ( ) ;
44
+ await connection . close ( ) ;
45
45
assert . throws (
46
46
function ( ) {
47
47
connection . stmtCacheSize = 10 ;
@@ -53,7 +53,7 @@ describe('52. connClose.js', function() {
53
53
it ( '52.2 can not set property, clientId, after connection closes' , async function ( ) {
54
54
const connection = await oracledb . getConnection ( dbConfig ) ;
55
55
assert ( connection ) ;
56
- await connection . release ( ) ;
56
+ await connection . close ( ) ;
57
57
assert . throws (
58
58
function ( ) {
59
59
connection . clientId = "52.3" ;
@@ -65,7 +65,7 @@ describe('52. connClose.js', function() {
65
65
it ( '52.3 can not set property, module' , async function ( ) {
66
66
const connection = await oracledb . getConnection ( dbConfig ) ;
67
67
assert ( connection ) ;
68
- await connection . release ( ) ;
68
+ await connection . close ( ) ;
69
69
assert . throws (
70
70
function ( ) {
71
71
connection . module = "52.4" ;
@@ -77,7 +77,7 @@ describe('52. connClose.js', function() {
77
77
it ( '52.4 can not set property, action' , async function ( ) {
78
78
const connection = await oracledb . getConnection ( dbConfig ) ;
79
79
assert ( connection ) ;
80
- await connection . release ( ) ;
80
+ await connection . close ( ) ;
81
81
assert . throws (
82
82
function ( ) {
83
83
connection . module = "52.5" ;
@@ -89,7 +89,7 @@ describe('52. connClose.js', function() {
89
89
it ( '52.5 can not call method, execute()' , async function ( ) {
90
90
const connection = await oracledb . getConnection ( dbConfig ) ;
91
91
assert ( connection ) ;
92
- await connection . release ( ) ;
92
+ await connection . close ( ) ;
93
93
await assert . rejects (
94
94
async ( ) => {
95
95
await connection . execute ( "select sysdate from dual" ) ;
@@ -101,7 +101,7 @@ describe('52. connClose.js', function() {
101
101
it ( '52.6 can not call method, break()' , async function ( ) {
102
102
const connection = await oracledb . getConnection ( dbConfig ) ;
103
103
assert ( connection ) ;
104
- await connection . release ( ) ;
104
+ await connection . close ( ) ;
105
105
await assert . rejects (
106
106
async ( ) => {
107
107
await connection . break ( ) ;
@@ -113,7 +113,7 @@ describe('52. connClose.js', function() {
113
113
it ( '52.7 can not call method, commit()' , async function ( ) {
114
114
const connection = await oracledb . getConnection ( dbConfig ) ;
115
115
assert ( connection ) ;
116
- await connection . release ( ) ;
116
+ await connection . close ( ) ;
117
117
await assert . rejects (
118
118
async ( ) => {
119
119
await connection . commit ( ) ;
@@ -125,7 +125,7 @@ describe('52. connClose.js', function() {
125
125
it ( '52.8 can not call method, createLob()' , async function ( ) {
126
126
const connection = await oracledb . getConnection ( dbConfig ) ;
127
127
assert ( connection ) ;
128
- await connection . release ( ) ;
128
+ await connection . close ( ) ;
129
129
await assert . rejects (
130
130
async ( ) => {
131
131
await connection . createLob ( oracledb . CLOB ) ;
@@ -137,7 +137,7 @@ describe('52. connClose.js', function() {
137
137
it ( '52.9 can not call method, queryStream()' , async function ( ) {
138
138
const connection = await oracledb . getConnection ( dbConfig ) ;
139
139
assert ( connection ) ;
140
- await connection . release ( ) ;
140
+ await connection . close ( ) ;
141
141
const stream = await connection . queryStream ( "select sysdate from dual" ) ;
142
142
assert ( stream ) ;
143
143
@@ -169,7 +169,7 @@ describe('52. connClose.js', function() {
169
169
it ( '52.10 can not call release() multiple times' , async function ( ) {
170
170
const connection = await oracledb . getConnection ( dbConfig ) ;
171
171
assert ( connection ) ;
172
- await connection . release ( ) ;
172
+ await connection . close ( ) ;
173
173
await assert . rejects (
174
174
async ( ) => {
175
175
await connection . commit ( ) ;
@@ -181,7 +181,7 @@ describe('52. connClose.js', function() {
181
181
it ( '52.11 can not call method, rollback()' , async function ( ) {
182
182
const connection = await oracledb . getConnection ( dbConfig ) ;
183
183
assert ( connection ) ;
184
- await connection . release ( ) ;
184
+ await connection . close ( ) ;
185
185
await assert . rejects (
186
186
async ( ) => {
187
187
await connection . rollback ( ) ;
@@ -193,7 +193,7 @@ describe('52. connClose.js', function() {
193
193
it ( "52.12 can access properties of closed connection without error" , async function ( ) {
194
194
const connection = await oracledb . getConnection ( dbConfig ) ;
195
195
assert ( connection ) ;
196
- await connection . release ( ) ;
196
+ await connection . close ( ) ;
197
197
assert . strictEqual ( connection . stmtCacheSize , undefined ) ;
198
198
assert . strictEqual ( connection . oracleServerVersion , undefined ) ;
199
199
assert . strictEqual ( connection . oracleServerVersionString , undefined ) ;
0 commit comments