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

app: refactor tests to use bootnode command #414

Merged
merged 2 commits into from
Apr 13, 2022
Merged

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Apr 12, 2022

Refactors the app_test package to use the real bootnode command (instead of local test package bootnode). This is in preparation for adding circuit relay to charon and bootnodes.

category: test
ticket: #413

t.Cleanup(listener.Close)
errChan := make(chan error, 1)
go func() {
errChan <- cmd.RunBootnode(ctx, cmd.BootnodeConfig{
Copy link
Contributor

Choose a reason for hiding this comment

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

@corverroos if the channel has capacity one, the write will not block, why then, put it in a different goroutine?

Copy link
Contributor Author

@corverroos corverroos Apr 13, 2022

Choose a reason for hiding this comment

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

Writing to the channel will not block, but the command itself blocks. cmd.RunBootnode is a long running command, it only stops at the end of the test when the context is closed.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Apr 13, 2022
@obol-bulldozer obol-bulldozer bot merged commit a1e411c into main Apr 13, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/bootnode12 branch April 13, 2022 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants