mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-13 06:04:02 +00:00
Made WaitForReplicas and EnsureDesiredReplicas use PollImmediate and improved logging.
This commit is contained in:
@@ -294,7 +294,7 @@ func Failf(format string, args ...interface{}) {
|
||||
func FailfWithOffset(offset int, format string, args ...interface{}) {
|
||||
msg := fmt.Sprintf(format, args...)
|
||||
log("INFO", msg)
|
||||
Fail(nowStamp()+": "+msg, 1 + offset)
|
||||
Fail(nowStamp()+": "+msg, 1+offset)
|
||||
}
|
||||
|
||||
func Skipf(format string, args ...interface{}) {
|
||||
@@ -1932,7 +1932,7 @@ func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{}) {
|
||||
if err != nil {
|
||||
Logf("Unexpected error occurred: %v", err)
|
||||
}
|
||||
ExpectWithOffset(1 + offset, err).NotTo(HaveOccurred(), explain...)
|
||||
ExpectWithOffset(1+offset, err).NotTo(HaveOccurred(), explain...)
|
||||
}
|
||||
|
||||
func ExpectNoErrorWithRetries(fn func() error, maxRetries int, explain ...interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user