Chromium Code Reviews
DescriptionRewrite ontimeout-event-override-after-failure for less flakes and better errors
This patch rewrites ontimeout-event-override-after-failure with these changes:
1) The test no longer depends on setTimeout racing the network to pass. Instead
of having an async setTimeout check for success, we rely on async callbacks in
xhr's onerror and ontimeout. This should make the test faster in the common case,
and still pass if the test server is slow.
2) The xhr timeout has been increased to 500ms. If this test is flaky due to the
test server not responding fast enough, this change should deflake it.
3) The two failure modes of this test now print different errors which should
help in debugging this if it is still flaky.
4) The test has been reformated to 80cols.
This test is flaky but only very rarely:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fxmlhttprequest%2Fontimeout-event-override-after-failure.html
A previous attempt at deflaking this test by increasing the timeout failed:
https://crrev.com/613135a62748f6d2f875f11b9096c368a3873714
After this patch lands, we need to monitor the following:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fxmlhttprequest%2Fontimeout-event-override-after-failure.html
If the flakiness disappears, the lines in TestExpectations should be removed.
BUG=464736, 665165
Committed: https://crrev.com/ff4bdcb669f08b5119a63d8eb60c40bb5c4b89c4
Cr-Commit-Position: refs/heads/master@{#434390}
Patch Set 1 #
Messages
Total messages: 22 (13 generated)
|
|||||||||||||||||||