-
Notifications
You must be signed in to change notification settings - Fork 724
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
Conversation
@@ -10,7 +10,7 @@ import ( | |||
) | |||
|
|||
const ( | |||
Initializing = iota | |||
Initializing State = iota |
There was a problem hiding this comment.
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)
There was a problem hiding this 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
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 outrequire...(...)
is in.How this was tested
CI