forked from k0sproject/k0s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable context-aware logging in the inttest wait functions
1. Put the currently executed test in the bootloose suite's context before returning it to the test suites. 2. Introduce the `logfFrom` function and use it everywhere. It determines the appropriate logging callback from the context, potentially using testing.T's Logf, or falling back to logrus's Infof. Also address the deprecation of `PollImmediateUntilWithContext` by replacing it with `PollUntilContextCancel`, as stated in the deprecation notice. Signed-off-by: Tom Wieczorek <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters