File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 34
34
35
35
const oracledb = require ( 'oracledb' ) ;
36
36
const should = require ( 'should' ) ;
37
+ const assert = require ( 'assert' ) ;
37
38
const dbconfig = require ( './dbconfig.js' ) ;
38
39
const testsUtil = require ( './testsUtil.js' ) ;
39
40
@@ -254,10 +255,16 @@ describe('185. runCQN.js', function() {
254
255
qos : oracledb . SUBSCR_QOS_QUERY
255
256
} ;
256
257
257
- await conn . subscribe ( 'sub4' , options ) ;
258
+ await assert . rejects (
259
+ async ( ) => {
260
+ await conn . subscribe ( 'sub4' , options ) ;
261
+ } ,
262
+ / D P I - 1 0 1 3 /
263
+ ) ;
264
+ // DPI-1013: not supported
265
+
258
266
} catch ( err ) {
259
- should . exist ( err ) ;
260
- ( err . message ) . should . startWith ( "DPI-1013:" ) ;
267
+ should . not . exist ( err ) ;
261
268
}
262
269
} ) ; // 185.4
263
270
@@ -310,4 +317,4 @@ describe('185. runCQN.js', function() {
310
317
should . not . exist ( err ) ;
311
318
}
312
319
} ) ; // 185.5
313
- } ) ;
320
+ } ) ;
You can’t perform that action at this time.
0 commit comments