-
Notifications
You must be signed in to change notification settings - Fork 129
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
chore(dot/parachain/overseer): fix TestHandleBlockEvents
the flaky test
#3707
chore(dot/parachain/overseer): fix TestHandleBlockEvents
the flaky test
#3707
Conversation
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.
Currently TestHandleBlockEvents
fails a lot of times in CI. This PR shows a bigger problem of how to gracefully shutdown overseer and subsystems
.
Even though, this solution is not ideal, since it keeps the channels open, it is necessary to unblock other PRs. Currently, we are having to run CI some 6-7 to pass it due to this test.
Hence approving this. Will tackle the problem to shutting down overseer and subsystems separately.
Changes
IMO, we should not close either of them.
That is why I removed the code to close overseerToSubsystem channels.
Used a
waitGroup
in the test to wait till we received all the messages in mocked subsystems before we called the stop function of overseer.Tests
go test -tags integration github.com/ChainSafe/gossamer
Issues
closes #3717
Primary Reviewer
@kishansagathiya @EclesioMeloJunior