-
Notifications
You must be signed in to change notification settings - Fork 81
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
CLOUDP-294932: Fix contract test skips #2049
Conversation
7ed2616
to
8f6fa5b
Compare
test/helper/contract/contract.go
Outdated
@@ -68,6 +61,16 @@ func RunGoContractTest(ctx context.Context, t *testing.T, name string, contractT | |||
}) | |||
} | |||
|
|||
func skipCheck(name, focus string, enabled bool) string { |
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.
Wouldn't (bool, string)
or simply error
be a more idiomatic type return?
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.
yes, error
seems better
Signed-off-by: jose.vazquez <[email protected]>
8f6fa5b
to
cac9bcd
Compare
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.
one nit else lgtm
Use simpler non parameterised error constructor Co-authored-by: Sergiusz Urbaniak <[email protected]>
Signed-off-by: jose.vazquez <[email protected]>
Fix bug skipping all contract tests by default and add unit tests to verify fix.
All Submissions: