-
Notifications
You must be signed in to change notification settings - Fork 23
Running "dart test" inside "core/pkgs/path" has race condition and sporadic failures #889
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
This is almost certainly because of the I don't really see any way to resolve that other than using |
Doing something like
should (and seems to) fix it. This would also allow the test to get rid of the try/finally. One could even make a helper method and fix it like this:
In fact I'll see if I can figure out this github PR thing... |
Running
dart test
inside "core/pkgs/path" on my machine fails several time per 10 runs.Obviously the concurrency matters - for me
-j
defaults to6
.Applying this change makes the thing happen more often (for me, like this it happens every time):
(I run
dart test -j2
- but it probably just has to bej>1
).The text was updated successfully, but these errors were encountered: