Skip to content

Commit cbffb54

Browse files
committed
MLE-28335 skip cts.param integration tests for server < 12.1
1 parent 4e70939 commit cbffb54

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

test-basic/optic-cts-param-test.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const valcheck = require('core-util-is');
1818

1919
const testconfig = require('../etc/test-config.js');
2020
const marklogic = require('../');
21+
const testlib = require('../etc/test-lib');
22+
let serverConfiguration = {};
2123

2224
// Allow overriding connection info via environment or direct config
2325
const connInfo = {
@@ -35,6 +37,21 @@ const op = marklogic.planBuilder;
3537
describe('cts.param integration tests (MLE-27883)', function() {
3638
this.timeout(10000); // Allow 10 seconds for server queries
3739

40+
before(function(done) {
41+
try {
42+
testlib.findServerConfiguration(serverConfiguration);
43+
setTimeout(() => { done(); }, 3000);
44+
} catch(error) {
45+
done(error);
46+
}
47+
});
48+
49+
before(function() {
50+
if (serverConfiguration.serverVersion < 12.1) {
51+
this.skip();
52+
}
53+
});
54+
3855
// ──────────────────────────────────────────────────────────────────────────────
3956
// Test: collectionQuery with cts.param binding
4057
// ──────────────────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)