Files
kubernetes/test/utils/ktesting
Patrick Ohly 4526b28606 ktesting: improve context message
This is not necessarily a problem, some code might use a timeout and expect it
to trigger. Therefore this should only be an info message, not a
warning. Long-term it might be useful to have an API where the caller decides
whether this gets logged.

The caller should use short messages and leave it to the user of those to
provide more context (no pun intended...). When logging, "canceling context" is
that context.

Before:

    scheduler_perf.go:1431: FATAL ERROR: op 7: delete scheduled pods: client rate limiter Wait returned an error: rate: Wait(n=1) would exceed context deadline
    contexthelper.go:69:
        WARNING: the operation ran for the configured 2s

After:

    scheduler_perf.go:1431: FATAL ERROR: op 7: delete scheduled pods: client rate limiter Wait returned an error: rate: Wait(n=1) would exceed context deadline
    contexthelper.go:69:
        INFO: canceling context: the operation ran for the configured 2s
2024-10-16 10:46:24 +02:00
..
2024-02-11 10:51:38 +01:00
2024-02-25 18:13:58 +01:00
2024-02-11 10:51:38 +01:00
2024-02-11 10:51:38 +01:00
2024-02-11 10:51:38 +01:00
2024-02-11 10:51:38 +01:00
2024-02-11 10:51:38 +01:00
2024-06-25 14:00:22 +02:00
2024-02-11 10:51:38 +01:00