Commit ba0779b2 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

Flaky test: Increase fetchReport timeout 1s -> 4s

Waiting up to 1s is probably too low. Some bots (mac) are not getting
the expected report on time.

See:
https://bugs.chromium.org/p/chromium/issues/detail?id=1061029#c4

TBR=yhirano@chromium.org

Bug: 1061029
Change-Id: Id3f24cc9ea216e6686ccbb4d534592dd9849a82c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2100931Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749710}
parent 19d924d5
...@@ -96,11 +96,11 @@ function wait(ms) { ...@@ -96,11 +96,11 @@ function wait(ms) {
async function fetchReport() { async function fetchReport() {
const fetch_report_path = resource_path + `/report.py?key=${report_token}`; const fetch_report_path = resource_path + `/report.py?key=${report_token}`;
for(let i = 0; i<10; ++i) { for(let i = 0; i<20; ++i) {
const response = await fetch(encode(fetch_report_path)); const response = await fetch(encode(fetch_report_path));
const reports = await response.json(); const reports = await response.json();
if (reports.length == 0) { if (reports.length == 0) {
wait(100); wait(200);
continue; continue;
} }
if (reports.length != 1) if (reports.length != 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment