-
Notifications
You must be signed in to change notification settings - Fork 517
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
Misc cleanups #3065
base: master
Are you sure you want to change the base?
Misc cleanups #3065
Conversation
c93f721
to
d07d800
Compare
t.Helper() | ||
|
||
if reflect.TypeOf(expected) != reflect.TypeOf(actual) { | ||
logFatal(t, fmt.Sprintf("expected %s but got %s", green(expected), yellow(actual))) |
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.
don't you want to apply the same \033[1;31m
formatting as below?
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 derived from AssertEquals
, not AssertDeepEquals
so maybe, but I should probably fix AssertEquals
also?
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.
Maybe one for a follow-up PR?
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.
OK
I'm not sure what's going on with the unit test failures. They're not reproducible locally. |
|
failed locally for me |
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Run all unit tests 5 times and produce coverage in one fell swoop. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
testhelper is too long give how often these things are used. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Better errors messages since we see the different types. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Make this a little easier to understand failures when they occur. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
d07d800
to
82f9990
Compare
A couple of somewhat generally "CI-related" changes that I'm too lazy to propose as separate PRs.