@@ -46,7 +46,7 @@ describe('51. poolClose.js', function(){
46
46
47
47
pool . getConnection ( function ( err ) {
48
48
should . exist ( err ) ;
49
- ( err . message ) . should . startWith ( "NJS-065:" ) ; // NJS-065: pool closed
49
+ should . strictEqual ( err . message , "NJS-065: connection pool was closed" ) ;
50
50
} ) ;
51
51
52
52
done ( ) ;
@@ -55,7 +55,7 @@ describe('51. poolClose.js', function(){
55
55
) ; // createPool()
56
56
} ) ; // 51.1
57
57
58
- it . skip ( '51.2 can not terminate the same pool multiple times' , function ( done ) {
58
+ it ( '51.2 can not terminate the same pool multiple times' , function ( done ) {
59
59
oracledb . createPool (
60
60
dbConfig ,
61
61
function ( err , pool ) {
@@ -67,7 +67,7 @@ describe('51. poolClose.js', function(){
67
67
68
68
pool . terminate ( function ( err ) {
69
69
should . exist ( err ) ;
70
- should . strictEqual ( err . message , "NJS-002: invalid pool" ) ;
70
+ should . strictEqual ( err . message , "NJS-065: connection pool was closed " ) ;
71
71
} ) ;
72
72
73
73
done ( ) ;
@@ -76,7 +76,7 @@ describe('51. poolClose.js', function(){
76
76
) ; // createPool()
77
77
} ) ; // 51.2
78
78
79
- it . skip ( '51.3 can not close the same pool multiple times' , function ( done ) {
79
+ it ( '51.3 can not close the same pool multiple times' , function ( done ) {
80
80
oracledb . createPool (
81
81
dbConfig ,
82
82
function ( err , pool ) {
@@ -88,7 +88,7 @@ describe('51. poolClose.js', function(){
88
88
89
89
pool . close ( function ( err ) {
90
90
should . exist ( err ) ;
91
- should . strictEqual ( err . message , "NJS-002: invalid pool" ) ;
91
+ should . strictEqual ( err . message , "NJS-065: connection pool was closed " ) ;
92
92
} ) ;
93
93
94
94
done ( ) ;
@@ -190,7 +190,7 @@ describe('51. poolClose.js', function(){
190
190
} )
191
191
. catch ( function ( err ) {
192
192
should . exist ( err ) ;
193
- ( err . message ) . should . startWith ( "NJS-065:" ) ; // NJS-065: pool closed
193
+ should . strictEqual ( err . message , "NJS-065: connection pool was closed" ) ;
194
194
} )
195
195
. then ( function ( ) {
196
196
done ( ) ;
@@ -200,7 +200,7 @@ describe('51. poolClose.js', function(){
200
200
) ; // createPool()
201
201
} ) ; // 51.6
202
202
203
- it . skip ( '51.7 can not set the attributes after pool created' , function ( done ) {
203
+ it ( '51.7 can not set the attributes after pool created' , function ( done ) {
204
204
var pMin = 2 ;
205
205
var pMax = 10 ;
206
206
@@ -237,7 +237,7 @@ describe('51. poolClose.js', function(){
237
237
238
238
pool . terminate ( function ( err ) {
239
239
should . exist ( err ) ;
240
- should . strictEqual ( err . message , "NJS-002: invalid pool" ) ;
240
+ should . strictEqual ( err . message , "NJS-065: connection pool was closed " ) ;
241
241
} ) ;
242
242
243
243
done ( ) ;
@@ -292,4 +292,4 @@ describe('51. poolClose.js', function(){
292
292
) ; // createPool()
293
293
} ) ; // 51.8
294
294
295
- } ) ;
295
+ } ) ;
0 commit comments