Merge pull request #128116 from pohly/ktesting-context-timeout-warning

ktesting: improve context message
This commit is contained in:
Kubernetes Prow Robot
2024-10-23 00:12:53 +01:00
committed by GitHub

View File

@@ -66,7 +66,7 @@ func withTimeout(ctx context.Context, tb TB, timeout time.Duration, timeoutCause
//
// Would be nice to log this with the source code location
// of our caller, but testing.Logf does not support that.
tb.Logf("\nWARNING: %s\n", timeoutCause)
tb.Logf("\nINFO: canceling context: %s\n", timeoutCause)
cancel(canceledError(timeoutCause))
}
}()