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 rare race conditions in integration tests #1653

Merged
merged 2 commits into from
Jan 6, 2021
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Dec 18, 2020

When a channel goes to the CLOSED state, the actor will stop itself.

We were previously sending messages to the actor asking for its state, which returns a failure when the actor is stopped. We can simply listen to state events to safely get the same result.

When a channel goes to the CLOSED state, the actor will stop itself.

We were previously sending messages to the actor asking for its state,
which returns a failure when the actor is stopped. We can simply listen
to state events to safely get the same result.
@t-bast t-bast requested a review from pm47 December 18, 2020 17:17
@t-bast t-bast changed the title Fix rare race condition in integration tests Fix rare race conditions in integration tests Dec 18, 2020
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

Nice!

@t-bast t-bast merged commit 629c2e6 into master Jan 6, 2021
@t-bast t-bast deleted the flaky-integration-tests branch January 6, 2021 17:38
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