Skip to content

Commit ceb3160

Browse files
committed
Test updates
1 parent 483d365 commit ceb3160

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/poolClose.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('51. poolClose.js', function(){
4646

4747
pool.getConnection(function(err) {
4848
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");
5050
});
5151

5252
done();
@@ -55,7 +55,7 @@ describe('51. poolClose.js', function(){
5555
); // createPool()
5656
}); // 51.1
5757

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) {
5959
oracledb.createPool(
6060
dbConfig,
6161
function(err, pool) {
@@ -67,7 +67,7 @@ describe('51. poolClose.js', function(){
6767

6868
pool.terminate(function(err) {
6969
should.exist(err);
70-
should.strictEqual(err.message, "NJS-002: invalid pool");
70+
should.strictEqual(err.message, "NJS-065: connection pool was closed");
7171
});
7272

7373
done();
@@ -76,7 +76,7 @@ describe('51. poolClose.js', function(){
7676
); // createPool()
7777
}); // 51.2
7878

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) {
8080
oracledb.createPool(
8181
dbConfig,
8282
function(err, pool) {
@@ -88,7 +88,7 @@ describe('51. poolClose.js', function(){
8888

8989
pool.close(function(err) {
9090
should.exist(err);
91-
should.strictEqual(err.message, "NJS-002: invalid pool");
91+
should.strictEqual(err.message, "NJS-065: connection pool was closed");
9292
});
9393

9494
done();
@@ -190,7 +190,7 @@ describe('51. poolClose.js', function(){
190190
})
191191
.catch(function(err) {
192192
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");
194194
})
195195
.then(function() {
196196
done();
@@ -200,7 +200,7 @@ describe('51. poolClose.js', function(){
200200
); // createPool()
201201
}); // 51.6
202202

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) {
204204
var pMin = 2;
205205
var pMax = 10;
206206

@@ -237,7 +237,7 @@ describe('51. poolClose.js', function(){
237237

238238
pool.terminate(function(err) {
239239
should.exist(err);
240-
should.strictEqual(err.message, "NJS-002: invalid pool");
240+
should.strictEqual(err.message, "NJS-065: connection pool was closed");
241241
});
242242

243243
done();
@@ -292,4 +292,4 @@ describe('51. poolClose.js', function(){
292292
); // createPool()
293293
}); // 51.8
294294

295-
});
295+
});

0 commit comments

Comments
 (0)