Made WaitForReplicas and EnsureDesiredReplicas use PollImmediate and improved logging.

This commit is contained in:
Andrzej Wasylkowski
2017-06-01 12:13:07 +02:00
parent 30b3472f89
commit c12f4978c2
2 changed files with 25 additions and 19 deletions

View File

@@ -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{}) {