diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-05-18 01:20:25 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-06-06 19:44:11 +0200 |
commit | 229dca3dee552f448dc9026237625ed58e8acfdc (patch) | |
tree | 3d463874affcf1303318882fb2f9961f5aec7cca /test/sequential/test-performance.js | |
parent | d1c096cc9d88a865094b91ef86b771cd23d8bfe7 (diff) | |
download | node-new-229dca3dee552f448dc9026237625ed58e8acfdc.tar.gz |
test,tools: enable running tests under workers
Enable running tests inside workers by passing `--worker`
to `tools/test.py`. A number of tests are marked as skipped,
or have been slightly altered to fit the different environment.
PR-URL: https://github.com/nodejs/node/pull/20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'test/sequential/test-performance.js')
-rw-r--r-- | test/sequential/test-performance.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sequential/test-performance.js b/test/sequential/test-performance.js index c5065227a6..fdadb0be14 100644 --- a/test/sequential/test-performance.js +++ b/test/sequential/test-performance.js @@ -4,6 +4,9 @@ const common = require('../common'); const assert = require('assert'); const { performance } = require('perf_hooks'); +if (!common.isMainThread) + common.skip('bootstrapping workers works differently'); + assert(performance); assert(performance.nodeTiming); assert.strictEqual(typeof performance.timeOrigin, 'number'); |