-
Notifications
You must be signed in to change notification settings - Fork 935
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
Unit tests are not deterministic #3170
Comments
An example in our CI: https://travis-ci.org/sbt/sbt/jobs/228286717#L2000. |
cunei
pushed a commit
to cunei/sbt
that referenced
this issue
May 28, 2018
It turns out that `syntaxAnalyzer.UnitParser()` in global now also needs to be synchronized. The alternative is adding `synchronizeNames = true` in the global constructor, but that already proved unreliable in the case of sbt#3743 (see comment sbt#3170 (comment))
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Unit tests are not deterministic. There are race conditions that make some test cases fail from time to time. For instance, running
;safeUnitTests;otherUnitTests
produced the following spurious error locally:We should find a solution to this.
The text was updated successfully, but these errors were encountered: