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

tests: cleanup snapshot generator goroutine leak #21021

Merged
merged 1 commit into from
May 4, 2020

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented May 4, 2020

A while back we added support for testing the snapshots via the consensus tests too. Unfortunately we only added generating the snapshots, but didn't add journalling them onto disk (which also cleans up the generator goroutines). That lead to all tests leaking out a snapshot goroutine.

This PR fixes it by properly tearing down all the generators.

@karalabe karalabe added this to the 1.9.14 milestone May 4, 2020
@karalabe karalabe requested a review from holiman May 4, 2020 09:04
@karalabe karalabe force-pushed the tests-snapshot-gen-cleanup branch from 9729b06 to 65cd28a Compare May 4, 2020 09:10
@karalabe karalabe requested a review from rjl493456442 as a code owner May 4, 2020 09:10
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit 5e45db7 into ethereum:master May 4, 2020
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