Skip to content
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

TestEntityWithStaticAnnotations::should_find_using_static_consistency is also flaky #310

Closed
flakycov opened this issue Jul 30, 2017 · 0 comments
Labels

Comments

@flakycov
Copy link

TestEntityWithStaticAnnotations::should_find_using_static_consistency flakes on the latest master, 7c9547c:

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.383 sec <<< FAILURE! - in info.archinnov.achilles.it.TestEntityWithStaticAnnotations
should_find_using_static_consistency(info.archinnov.achilles.it.TestEntityWithStaticAnnotations)  Time elapsed: 0.428 sec  <<< FAILURE!
java.lang.AssertionError:
Expecting actual not to be null
       at info.archinnov.achilles.it.TestEntityWithStaticAnnotations.should_find_using_static_consistency(TestEntityWithStaticAnnotations.java:164)

The problem seems to be a race between executing "EntityWithStaticAnnotations/insert_single_row.cql" and checking its results: the check may happen before the statement finishes executing.
Two other tests in this class use "Thread.sleep(1000)" to reduce this flakiness.
However, two tests don't have the sleep and can flake more often (about 6% of our runs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants