test: fix flaky test-cluster-dgram-2 · nodejs/node@aebc8df · GitHub
Skip to content

Commit aebc8df

Browse files
Trottaddaleax
authored andcommitted
test: fix flaky test-cluster-dgram-2
There is no guarantee that a dgram packet will be received. The test is currently written to only send exactly as many dgram packets as required assuming they are all received. As a result, failures like this may occur (from CI): ``` not ok 719 parallel/test-cluster-dgram-2 --- duration_ms: 120.39 severity: fail stack: |- timeout ``` This change has the workers send packets continuously until disconnect. PR-URL: #9791 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent 5542a72 commit aebc8df

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

test/parallel/test-cluster-dgram-2.js

Lines changed: 8 additions & 1 deletion

0 commit comments

Comments
 (0)