Commit 433471ed authored by Sophie Chang's avatar Sophie Chang Committed by Commit Bot

Fix flaky HintsFetcherTimerRetry test by allowing multiple fetch states

Given that we do not recreate a new batch update hints fetcher each time
we fetch under that context, we need to allow for the hints fetcher to
transition to multiple states so that we can simulate failure -> success
test cases. The alternative is to recreate a batch update hints fetcher
each time, but then that will go out of scope if a request has not
finished yet and that is a bigger change that will cause issues in the
actual code.

Bug: 10463110
Change-Id: Iaf9950e2035f439a4a9da55ddeaa0bededec6abc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2025572Reviewed-by: default avatarMichael Crouse <mcrouse@chromium.org>
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735989}
parent 0f1f23ba
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