Assertions in scaffolded suite_test.go BeforeSuite are not caught #2328
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What broke? What's expected?
This code at the bottom of a scaffolded BeforeSuite function in
controllers/suite_test.go
has a bug:Ginkgo does not work in new goroutines without adding a
defer GinkgoRecover()
line. When this assertion fails you get this error:As a result the error message cannot be inspected.
Reproducing this issue
No response
KubeBuilder (CLI) Version
Version: main.version{KubeBuilderVersion:"3.1.0", KubernetesVendor:"unknown", GitCommit:"92e0349ca7334a0a8e5e499da4fb077eb524e94a", BuildDate:"2021-05-29T05:57:53+01:00", GoOs:"darwin", GoArch:"amd64"}
PROJECT version
3
Plugin versions
Other versions
No response
Extra Labels
No response
The text was updated successfully, but these errors were encountered: