-
Notifications
You must be signed in to change notification settings - Fork 127
Tests can be contaminated by manual test data #31
Comments
This has caused some failures in Travis CI as well: https://travis-ci.org/lagom/online-auction-scala/builds/208863419 |
@TimMoore do you think this is also affecting the java version? (but we've never seen it for some exec order of the tests?) |
The Java tests pass, but with an error logged:
|
That error is logged with clean data too, though, so it must be unrelated to this issue. |
I think that stacktrace is expected:
because of test: @Test(expected = TransportException.class)
public void shouldFailEditOnBiddingFinished() throws Throwable { |
Oh right... strange that it printed after the next test started. Are we missing an await? |
I don't think we're missing an await. I think it's a race condition when the logging. I'm not sure if the stack trace is printed by the server-side code or the client side code or the unit-test runner code though. Long-story short, I don't think the exception is related to the contamination of tests reported in this issue's description originally. |
Reproduction
sbt clean runAll
sbt test
Expected behavior
The tests should pass.
Actual behavior
The events created by the test are not isolated in any way.
Workaround
sbt clean test
The text was updated successfully, but these errors were encountered: