diff --git a/test/e2e/framework/log.go b/test/e2e/framework/log.go index 43927b2f0e7..e398817aef6 100644 --- a/test/e2e/framework/log.go +++ b/test/e2e/framework/log.go @@ -49,6 +49,7 @@ func Failf(format string, args ...interface{}) { skip := 2 log("FAIL", "%s\n\nFull Stack Trace\n%s", msg, PrunedStack(skip)) e2eginkgowrapper.Fail(nowStamp()+": "+msg, skip) + panic("unreachable") } // Fail is a replacement for ginkgo.Fail which logs the problem as it occurs diff --git a/test/e2e/framework/skipper/skipper.go b/test/e2e/framework/skipper/skipper.go index c9434908eaa..8e4d9a879e8 100644 --- a/test/e2e/framework/skipper/skipper.go +++ b/test/e2e/framework/skipper/skipper.go @@ -118,6 +118,7 @@ func pruneStack(skip int) string { // Skipf skips with information about why the test is being skipped. func Skipf(format string, args ...interface{}) { skipInternalf(1, format, args...) + panic("unreachable") } // SkipUnlessAtLeast skips if the value is less than the minValue.