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

pool: Make endpoint tests more robust and fix race. #387

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 20, 2023

This modifies the endpoint tests to respect the context when sending to and receiving from the endpoint channels similar to what was recently done for the chainstate tests.

It also fixes a race in the test due to the add callback being invoked in the run goroutine.

pool/endpoint_test.go Outdated Show resolved Hide resolved
pool/endpoint_test.go Outdated Show resolved Hide resolved
This modifies the endpoint tests to respect the context when sending to
and receiving from the endpoint channels similar to what was recently
done for the chainstate tests.

It also fixes a race in the test due to the add callback being invoked
in the run goroutine.
@jholdstock jholdstock merged commit 1fe167c into decred:master Sep 20, 2023
2 checks passed
@davecgh davecgh deleted the more_robust_endpoint_tests branch September 20, 2023 08:06
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