Skip to content

Commit c6e11a9

Browse files
committed
Adjust test after CQN fix
1 parent f82e6c9 commit c6e11a9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

test/runCQN.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
const oracledb = require('oracledb');
3636
const should = require('should');
37+
const assert = require('assert');
3738
const dbconfig = require('./dbconfig.js');
3839
const testsUtil = require('./testsUtil.js');
3940

@@ -254,10 +255,16 @@ describe('185. runCQN.js', function() {
254255
qos : oracledb.SUBSCR_QOS_QUERY
255256
};
256257

257-
await conn.subscribe('sub4', options);
258+
await assert.rejects(
259+
async () => {
260+
await conn.subscribe('sub4', options);
261+
},
262+
/DPI-1013/
263+
);
264+
// DPI-1013: not supported
265+
258266
} catch (err) {
259-
should.exist(err);
260-
(err.message).should.startWith("DPI-1013:");
267+
should.not.exist(err);
261268
}
262269
}); // 185.4
263270

@@ -310,4 +317,4 @@ describe('185. runCQN.js', function() {
310317
should.not.exist(err);
311318
}
312319
}); // 185.5
313-
});
320+
});

0 commit comments

Comments
 (0)