summaryrefslogtreecommitdiff
path: root/test/javascript/cli_runner.js
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2019-12-19 10:23:27 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2019-12-25 11:45:20 -0600
commitb4fa539b603c67936250ffae222e4ac442d277a2 (patch)
tree1e5d2b8e90e6245729115ab55bfc85fafd72929f /test/javascript/cli_runner.js
parent4d73243379538c057c37a0a248283d53161d84bf (diff)
downloadcouchdb-b4fa539b603c67936250ffae222e4ac442d277a2.tar.gz
Speedup JavaScript tests
We sleep for a bit more than a second for each test. Rather than using return to skip a test we just mark the test as skipped so we don't have to waste time. This saves about 25s on the test suite.
Diffstat (limited to 'test/javascript/cli_runner.js')
-rw-r--r--test/javascript/cli_runner.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/javascript/cli_runner.js b/test/javascript/cli_runner.js
index dbaf1c216..5d7a98021 100644
--- a/test/javascript/cli_runner.js
+++ b/test/javascript/cli_runner.js
@@ -22,6 +22,10 @@ function runTest() {
var count = 0;
var start = new Date().getTime();
+ if(couchTests.skip) {
+ quit(2);
+ }
+
for(var name in couchTests) {
count++;
}