Skip to content

Commit ce29659

Browse files
authored
fix: increase sleep in midline-flush.c (#11)
* fix: increase sleep in midline-flush.c Increasing sleep tenfold to really minimize the chances of test races at build time.
1 parent 7420ba5 commit ce29659

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/midline-flush.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ int main() {
1616
fflush(stdout);
1717
fflush(stderr);
1818
goodbye(stderr);
19-
usleep(3); // It only takes a millisecond to give stderr a head start
20-
// but we'll give it three to avoid false positives where
21-
// the first line is written to stdout.
19+
usleep(30); // It only takes a millisecond to give stderr a head start
20+
// but we'll give it thirty to avoid false positives where
21+
// the first line is written to stdout.
2222
goodbye(stdout);
2323
fflush(stderr);
2424
fflush(stdout);

0 commit comments

Comments
 (0)