Skip to content

Conversation

@grantr
Copy link
Contributor

@grantr grantr commented Feb 21, 2018

Example tests don't get the testing object, so the signature is empty and they can't use t.Error. This PR replaces that with log.Fatal, which is equivalent because it will cause output comparison to fail if it prints anything.

@mattmoor: @bobcatfish discovered that Bazel's go_test rule doesn't run example tests, which is why this stayed broken for so long. See #193 (comment).

Example tests don't get the testing object. Using log.Fatal is
equivalent to t.Error because it will cause output comparison to fail.
@grantr grantr added the small label Feb 21, 2018
@grantr grantr self-assigned this Feb 21, 2018
Copy link
Contributor

@bobcatfish bobcatfish left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @grantr !

@grantr grantr merged commit 5a738ee into knative:master Feb 21, 2018
@grantr grantr deleted the fix-hooks-example branch February 21, 2018 19:21
@adrcunha
Copy link
Contributor

Thanks, Grant. You fixed this way faster than me, now I have one less blocker for the go tests. :)

@bobcatfish
Copy link
Contributor

@grantr @mattmoor I created this issue in the bazel rules_go repo: bazel-contrib/rules_go#1341

nak3 pushed a commit to nak3/serving that referenced this pull request Jul 31, 2019
Update the catalogsource for the newest image.
ReToCode pushed a commit to ReToCode/serving that referenced this pull request Mar 31, 2023
* Add github action for the validation

* Fix error message

* Some clean up

* Add version label accurately
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants