File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const valcheck = require('core-util-is');
1818
1919const testconfig = require ( '../etc/test-config.js' ) ;
2020const marklogic = require ( '../' ) ;
21+ const testlib = require ( '../etc/test-lib' ) ;
22+ let serverConfiguration = { } ;
2123
2224// Allow overriding connection info via environment or direct config
2325const connInfo = {
@@ -35,6 +37,21 @@ const op = marklogic.planBuilder;
3537describe ( '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 // ──────────────────────────────────────────────────────────────────────────────
You can’t perform that action at this time.
0 commit comments