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: data race in StreamLogs tests #1139

Open
wants to merge 2 commits into
base: stage
Choose a base branch
from
Open

Conversation

moshe-blox
Copy link
Contributor

@moshe-blox moshe-blox commented Sep 10, 2023

This unit-test run failed with a data race in TestHandleBlockEventsStream because that test wasn't waiting for StreamLogs's inner goroutine to end before finishing.

This data race is described here.

This PR fixes 3 tests to signal StreamLogs to stop (with context cancellation or ExecutionLayer.Close()) and then wait for the logs channel to close before returning.

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.

3 participants