Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

test: microtask-queue-run(-domain) should be made non-flaky #25607

Closed
@joaocgreis

Description

@joaocgreis

test-microtask-queue-run and test-microtask-queue-run-domain appear to be flaky (PR: #25606), failing very rarely. Testing 10k runs on the platforms I have available, I got failure rates as high as:

  • Linux x64: OK: 9964 NOT OK: 36
  • Windows 7 x64: OK: 9843 NOT OK: 157
  • SmartOS x86 (gcc 4.7): OK: 9904 NOT OK: 96

The results appear to be influenced by the machine load, I got much lower results on an otherwise idle machine.

Quick test:

time (OK=0; NOK=0; for i in `seq 10000`; do ./out/Release/node test/simple/test-microtask-queue-run.js && OK=$(($OK+1)) || NOK=$(($NOK+1)); echo "$i   OK: $OK   NOT OK: $NOK"; done)

Other tests from test-microtask-queue-* seem okay.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions