Skip to content

Commit dff80b9

Browse files
committed
Update test/pool.js to reflect pool._logStats() change
1 parent 25dce8d commit dff80b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/pool.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ describe('2. pool.js', function() {
912912
});
913913

914914
describe('2.9 connection request queue (_enableStats & _logStats functionality)', function(){
915-
it('2.9.1 works after the pool as been terminated', function(done) {
915+
it('2.9.1 does not works after the pool has been terminated', function(done) {
916916
oracledb.createPool(
917917
{
918918
externalAuth : dbConfig.externalAuth,
@@ -944,7 +944,8 @@ describe('2. pool.js', function() {
944944
try {
945945
pool._logStats();
946946
} catch (err) {
947-
should.not.exist(err);
947+
should.exist(err);
948+
(err.message).should.startWith("NJS-002:"); // NJS-002: invalid pool
948949
}
949950

950951
done();

0 commit comments

Comments
 (0)