diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2019-12-19 10:23:27 -0600 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2019-12-25 11:45:20 -0600 |
commit | b4fa539b603c67936250ffae222e4ac442d277a2 (patch) | |
tree | 1e5d2b8e90e6245729115ab55bfc85fafd72929f /test/javascript/cli_runner.js | |
parent | 4d73243379538c057c37a0a248283d53161d84bf (diff) | |
download | couchdb-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.js | 4 |
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++; } |