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

Fix racy test: Akka.Cluster.Sharding.Tests.CoordinatedShutdownShardingSpec.Sharding_and_CoordinatedShutdown_must_run_successfully #4158

Merged
merged 7 commits into from
Jan 23, 2020

Conversation

IgorFedchenko
Copy link
Contributor

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.

@IgorFedchenko
Copy link
Contributor Author

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

@IgorFedchenko
Copy link
Contributor Author

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.

Copy link
Member

@Aaronontheweb Aaronontheweb left a 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);
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(which you already did)

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

Successfully merging this pull request may close these issues.

2 participants