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

Use require in Avalanche bootstrapping tests #1344

Merged
merged 5 commits into from
Apr 17, 2023

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

We are changing core behavior of the avalanche bootstrapper in a future release. This means we need to update the tests.... but the tests are currently pretty gross to look at... So trying to make me hate the refactor a little less.

How this works

if ... { t.Fatal(...) } is out require...(...) is in.

How this was tested

CI

@StephenButtolph StephenButtolph added the testing This primarily focuses on testing label Apr 13, 2023
@StephenButtolph StephenButtolph added this to the v1.10.1 milestone Apr 13, 2023
@StephenButtolph StephenButtolph self-assigned this Apr 13, 2023
@@ -10,7 +10,7 @@ import (
)

const (
Initializing = iota
Initializing State = iota
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed to enable using require.Equal rather than require.EqualValues (or explicitly casting)

Copy link

@danlaine danlaine left a comment

Choose a reason for hiding this comment

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

just the one question about why we still use t.Fatal some places instead of require.FailNow

@StephenButtolph StephenButtolph merged commit 3b382b2 into dev Apr 17, 2023
@StephenButtolph StephenButtolph deleted the cleanup-avalanche-bootstrap-tests branch April 17, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants