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

Update subnet-evm/avalanchego and remove hardcoded timeouts from tmpnet #535

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

iansuvak
Copy link
Contributor

@iansuvak iansuvak commented Sep 6, 2024

Why this should be merged

Latest changes make tmpnet a bit slower to startup. To update to the newest versions and have the E2E tests pass we need to extend timeouts. Since this repo is used downstream in the awm-relayer repo as well I made NewLocalNetwork accept a context and let the caller handle setting timeouts.

How this works

How this was tested

CI

How is this documented

N/A

@@ -128,9 +126,9 @@ func NewLocalNetwork(
avalancheGoBuildPath, ok := os.LookupEnv("AVALANCHEGO_BUILD_PATH")
Expect(ok).Should(Equal(true))

ctxWithTimeout, cancelBootstrap := context.WithTimeout(ctx, timeout)
ctx, cancelBootstrap := context.WithCancel(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to your change here (and I probably wrote this code myself 😅 ) but shouldn't the defer come before the context is passed into BootstrapNewNetwork?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed -- thanks for noticing

@iansuvak iansuvak requested a review from geoff-vball September 6, 2024 19:53
@iansuvak iansuvak merged commit f23da2d into main Sep 6, 2024
14 checks passed
@iansuvak iansuvak deleted the update-subnet-evm branch September 6, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants