boostorg / boostorg/process

group_wait.cpp is flaky

Open
#185 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Description

group_wait.cpp in process/test is flaky(sometimes passed, sometime failed in running). When running multiple tests at the same time, the possibility of meeting failure is much higher.
The test expects c1 and c2 is done in 5 seconds, but it's hard to satisfy this requirement when the machine is overloadded.
https://github.com/boostorg/process/blob/1b4d67170fec7ba5523d58405a2c40f80eb1290b/test/group_wait.cpp#L34-L81

The timeout of unit_test or the sleep time should be set larger or modified to avoid flaky failure.
https://github.com/boostorg/process/blob/1b4d67170fec7ba5523d58405a2c40f80eb1290b/test/group_wait.cpp#L34
https://github.com/boostorg/process/blob/1b4d67170fec7ba5523d58405a2c40f80eb1290b/test/group_wait.cpp#L40-L41

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.