-
Notifications
You must be signed in to change notification settings - Fork 309
test: CI flake in "UpdateMachine.load retries registerQueue on NetworkError" #602
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
Comments
Thanks for spotting this. If that indeed also happens in main, then it's a bug in either the test code, or the code under test, so it'd be good to debug and fix. |
Got this again, this time locally in |
This flake happened today in a Flutter "customer tests" run: So it's past time we should resolve it. I'll investigate, and either fix the test or disable it. |
Aha. The problem is here in await Future<void>.delayed(Duration(milliseconds: duration.round())); If That then confuses the sequence of happenings that the test is counting on, which is fairly brittle. I'll try to tighten down the self-checks inside the test, so that if its fairly-brittle sequencing assumptions fail then the test detects that up front. And then I'll fix backoff so that it always waits a nonzero interval — |
Oho, and one of the contributing factors here was this limitation called out in
Because what's happening is that we do have an appropriately paranoid check in the test body:
in particular that last line, checking that the …but when the check fails, that's an exception thrown by test body, aka the callback passed to edit: previously wrote: So, maybe I'll pursue that |
Noticed when working on code that's almost definitely unrelated (implementing the web-auth feature):
#600 (comment)
The text was updated successfully, but these errors were encountered: