Log an error instantly in expectNoError
This commit is contained in:
@@ -916,6 +916,9 @@ func randomSuffix() string {
|
||||
}
|
||||
|
||||
func expectNoError(err error, explain ...interface{}) {
|
||||
if err != nil {
|
||||
Logf("Unexpected error occurred: %v", err)
|
||||
}
|
||||
ExpectWithOffset(1, err).NotTo(HaveOccurred(), explain...)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user