4a065c649d
While working on the e2e tests, I noticed this test was taking a long time. Turns out this was because it fully exercises an http client retry logic using exponential backoff and up to 4 retries. To reduce the costs, I changed the test to use controlled environment instead. This still hits the same code-paths but provides a faster turnaround by using at most 1 retry, and issuing retries immediately. With these changes, the test completes in 3s (instead of 28s). I noticed that some of the tests to check an "unreliable" server where non-deterministic (multiple parallel requests that sometimes fail or succeed). The changes here also make it deterministic. While this test seems to have some flakes due to other reasons, my hope is that these changes will reduce the chances of this test being flaky on the bots. Change-Id: I8eb2a00c7a489ab4e5a46e2b5cdbee40d1ffb8d5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356623 Commit-Queue: Sigmund Cherem <sigmund@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com>