mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 03:38:15 +00:00
Merge pull request #128116 from pohly/ktesting-context-timeout-warning
ktesting: improve context message
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user