Skip to content

Commit d84ff2e

Browse files
committed
fixup! test: deflake user timing WPT assertions
1 parent 990e9e8 commit d84ff2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-common-wpt-script-modifier.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if (process.env.NODE_TEST_WPT_MODIFIER_PROBE === '1') {
1818
}, 2));
1919
runner.runJsTests();
2020
} else {
21-
const env = { ...process.env, NODE_TEST_WPT_MODIFIER_PROBE: '1' };
22-
for (const key of ['NODE_TEST_WPT', 'WPT_REPORT', 'WPT_INSPECT']) delete env[key];
21+
// eslint-disable-next-line no-unused-vars
22+
const { NODE_TEST_WPT, WPT_REPORT, WPT_INSPECT, ...env } = { ...process.env, NODE_TEST_WPT_MODIFIER_PROBE: '1' };
2323
for (const backend of ['thread', 'process']) {
2424
const result = spawnSync(process.execPath, [__filename, 'base64.any.js'], {
2525
env: { ...env, WPT_BACKEND: backend },

0 commit comments

Comments
 (0)