Skip to content

Commit ffb0d0b

Browse files
committed
Improve test version portability
1 parent 348213c commit ffb0d0b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/executeMany.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ describe('163. executeMany.js', function() {
317317

318318
it('163.6 shows dmlRowCounts', function(done) {
319319

320-
if (oracledb.oracleClientVersion < 1201000200) { this.skip(); }
320+
if ( (oracledb.oracleClientVersion < 1201000200)
321+
|| (conn.oracleServerVersion < 1201000200) ) {
322+
this.skip();
323+
}
321324

322325
var childTable = "nodb_tab_child_one";
323326
var parentTable = "nodb_tab_parent_one";
@@ -345,7 +348,10 @@ describe('163. executeMany.js', function() {
345348

346349
it('163.7 shows batchErrors behavior', function(done) {
347350

348-
if (oracledb.oracleClientVersion < 1201000200) { this.skip(); }
351+
if ( (oracledb.oracleClientVersion < 1201000200)
352+
|| (conn.oracleServerVersion < 1201000200) ) {
353+
this.skip();
354+
}
349355

350356
var childTable = "nodb_tab_child_two";
351357
var parentTable = "nodb_tab_parent_two";

0 commit comments

Comments
 (0)