diff --git a/js/server/modules/@arangodb/testing.js b/js/server/modules/@arangodb/testing.js index 3927e796a3..0ee1a3b79f 100644 --- a/js/server/modules/@arangodb/testing.js +++ b/js/server/modules/@arangodb/testing.js @@ -1103,10 +1103,10 @@ function performTests(options, testList, testname, remote) { first = false; if (options.loopEternal) { - if (options.loopSleepWhen % loopCount == 0) { - print("sleeping...") - internal.sleep(options.loopSleepSec); - print("continuing.") + if (options.loopSleepWhen % loopCount === 0) { + print("sleeping..."); + sleep(options.loopSleepSec); + print("continuing."); } loopCount++; } diff --git a/js/server/tests/aql-edges-cluster.js b/js/server/tests/aql-edges-cluster.js index 62949f60d5..20c9b267b5 100644 --- a/js/server/tests/aql-edges-cluster.js +++ b/js/server/tests/aql-edges-cluster.js @@ -1,5 +1,5 @@ /*jshint globalstrict:false, strict:false, sub: true, maxlen: 500 */ -/*global assertEqual, AQL_EXPLAIN */ +/*global assertEqual, AQL_EXECUTE, AQL_EXPLAIN */ //////////////////////////////////////////////////////////////////////////////// /// @brief tests for query language, edges /// diff --git a/js/server/tests/aql-edges-noncluster.js b/js/server/tests/aql-edges-noncluster.js index 0377dfca6b..c9abf2f3e4 100644 --- a/js/server/tests/aql-edges-noncluster.js +++ b/js/server/tests/aql-edges-noncluster.js @@ -1,5 +1,5 @@ /*jshint globalstrict:false, strict:false, sub: true, maxlen: 500 */ -/*global assertEqual, AQL_EXPLAIN */ +/*global assertEqual, AQL_EXECUTE, AQL_EXPLAIN */ //////////////////////////////////////////////////////////////////////////////// /// @brief tests for query language, edges /// diff --git a/js/server/tests/aql-hash-cluster.js b/js/server/tests/aql-hash-cluster.js index 5f6d365bc7..b4832e6e8b 100644 --- a/js/server/tests/aql-hash-cluster.js +++ b/js/server/tests/aql-hash-cluster.js @@ -1,5 +1,5 @@ /*jshint globalstrict:false, strict:false, sub: true, maxlen: 500 */ -/*global assertEqual, AQL_EXPLAIN */ +/*global assertEqual, AQL_EXECUTE, AQL_EXPLAIN */ //////////////////////////////////////////////////////////////////////////////// /// @brief tests for Ahuacatl, hash index queries diff --git a/js/server/tests/aql-hash-noncluster.js b/js/server/tests/aql-hash-noncluster.js index f7895b54b4..bcd863eed7 100644 --- a/js/server/tests/aql-hash-noncluster.js +++ b/js/server/tests/aql-hash-noncluster.js @@ -1,5 +1,5 @@ /*jshint globalstrict:false, strict:false, sub: true, maxlen: 500 */ -/*global assertEqual, AQL_EXPLAIN */ +/*global assertEqual, AQL_EXECUTE, AQL_EXPLAIN */ //////////////////////////////////////////////////////////////////////////////// /// @brief tests for Ahuacatl, hash index queries diff --git a/js/server/tests/aql-skiplist-cluster.js b/js/server/tests/aql-skiplist-cluster.js index fa12f4c0eb..b724ab6293 100644 --- a/js/server/tests/aql-skiplist-cluster.js +++ b/js/server/tests/aql-skiplist-cluster.js @@ -1,5 +1,5 @@ /*jshint globalstrict:false, strict:false, maxlen: 500 */ -/*global assertEqual, AQL_EXPLAIN */ +/*global assertEqual, AQL_EXECUTE, AQL_EXPLAIN */ //////////////////////////////////////////////////////////////////////////////// /// @brief tests for Ahuacatl, skiplist index queries diff --git a/js/server/tests/aql-skiplist-noncluster.js b/js/server/tests/aql-skiplist-noncluster.js index 5d39166a18..6918b4a9ac 100644 --- a/js/server/tests/aql-skiplist-noncluster.js +++ b/js/server/tests/aql-skiplist-noncluster.js @@ -1,5 +1,5 @@ /*jshint globalstrict:false, strict:false, maxlen: 500 */ -/*global assertEqual, AQL_EXPLAIN */ +/*global assertEqual, AQL_EXECUTE, AQL_EXPLAIN */ //////////////////////////////////////////////////////////////////////////////// /// @brief tests for Ahuacatl, skiplist index queries