Skip to content

benchmark: fix timeout bug in write-stream-throughput

Currently it's possible for this benchmark to call bench.end() before bench.start(). Fix this to resolve some occasional CI flakiness.

Fixes: https://github.com/nodejs/node/issues/17901

CI: https://ci.nodejs.org/job/node-test-pull-request/12388/ Stress test CI: https://ci.nodejs.org/job/node-stress-single-test/1600/

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

benchmark

Merge request reports

Loading