You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
I think using Gomega assertions (Expect(...).To(...)) but do not use Ginkgo , causes this error.
This is hard to debug.
Panic is handled when using Ginkgo and Gomega together. The assertions are in It() or Specify() blocks and Ginkgo catches the panic()s and produces useful output.
I was able to catch those errors by adding the following functions into ginkgo tests, The panic is caused Since the go functions are not handling errors.
defer func() {
// recover from panic if one occured. Set err to nil otherwise.
if recover() != nil {
err := errors.New("testNetworkConnectivity panic ")
log.Error(err)
}
}()
I think using Gomega assertions (Expect(...).To(...)) but do not use Ginkgo , causes this error.
This is hard to debug.
Panic is handled when using Ginkgo and Gomega together. The assertions are in It() or Specify() blocks and Ginkgo catches the panic()s and produces useful output.
https://onsi.github.io/ginkgo/#adding-specs-to-a-suite
The text was updated successfully, but these errors were encountered: