-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix flaky tests (1) #5479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flaky tests (1) #5479
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ Bug #69900 Commandline input/output weird behaviour with STDIO | |
error_reporting(E_ALL); | ||
|
||
$fl = __DIR__ . DIRECTORY_SEPARATOR . "test69900.php"; | ||
$max_ms = 10; | ||
$max_ms = 20; | ||
|
||
$test_content = '<?php | ||
|
||
|
@@ -48,8 +48,8 @@ fclose($pipes[1]); | |
proc_close($process); | ||
|
||
/* It is expected that the first call takes more than the limit. | ||
* Allow one more to account for a possible process switch. */ | ||
if ($moreThanLimit > 2) { | ||
* Allow two more to account for possible process switch, etc. */ | ||
if ($moreThanLimit > 3) { | ||
echo "fgets() took more than $max_ms ms $moreThanLimit times\n"; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you remember which builder this one failed on? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've seen this one fail repeatedly. At least once on Travis CI, in the S390X environment, but I think I have seen it in other environments as well. |
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the double underscore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am having trouble articulating why I did that. Maybe I wanted 'test' to appear distinct from the name of the test case?