-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix racy test: Akka.Cluster.Sharding.Tests.CoordinatedShutdownShardingSpec.Sharding_and_CoordinatedShutdown_must_run_successfully #4158
Fix racy test: Akka.Cluster.Sharding.Tests.CoordinatedShutdownShardingSpec.Sharding_and_CoordinatedShutdown_must_run_successfully #4158
Conversation
I guess we need to run this 10-20 times to make sure it is not failing anymore, since it is passing in 87% cases (according to this report |
Mm, also most likely we need to start all the Akka tests to make CI loaded... So will add some spaces to the core project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - waiting to see how it runs with my change on top
{ | ||
_region2.Tell(1, _probe2.Ref); | ||
_probe2.ExpectMsg<int>(1.Seconds()).Should().Be(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave these at 1 second each, but just expand the total wait time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(which you already did)
Related to #3786
This PR should improve/fix flip rate of this test: Akka.Cluster.Sharding.Tests.CoordinatedShutdownShardingSpec.Sharding_and_CoordinatedShutdown_must_run_successfully
It is time sensitive and failing due to timeouts (because of remote address gating). Seems like the test is correct by itself, so lets start with using
async
test APIs and increasing timeouts.