Skip to content

test: reduce test-hash-seed run time by half - #25522

Closed
Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:refactor-hash-seed
Closed

Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:refactor-hash-seed

Conversation

@Trott

@Trott Trott commented Jan 15, 2019

Copy link
Copy Markdown
Member

Reduce the time it takes to run test/pummel/test-hash-seed by switching
from spawnSync() to spawn(). On my computer, this reduces the runtime
from about 80 seconds to about 40 seconds. This test is not (yet) run
regularly on CI, but when it was run recently, it timed out.

While we're in there, replace min() function with Math.min(...). It's in a separate commit because it's unrelated, but I couldn't bring myself to not do it at all.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. flaky-test Issues and PRs involving tests that fail intermittently in CI. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants