From dc6abc3ff8fb9437945ac3c74eab6b9da72db1cc Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Thu, 22 Feb 2024 11:42:48 +0100 Subject: [PATCH] ktesting: add Underlier type alias This may help avoid importing both this ktesting and klog's ktesting. --- test/utils/ktesting/tcontext.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/utils/ktesting/tcontext.go b/test/utils/ktesting/tcontext.go index fe95b06dbe1..f2ea900380d 100644 --- a/test/utils/ktesting/tcontext.go +++ b/test/utils/ktesting/tcontext.go @@ -35,6 +35,10 @@ import ( "k8s.io/kubernetes/test/utils/ktesting/internal" ) +// Underlier is the additional interface implemented by the per-test LogSink +// behind [TContext.Logger]. +type Underlier = ktesting.Underlier + // CleanupGracePeriod is the time that a [TContext] gets canceled before the // deadline of its underlying test suite (usually determined via "go test // -timeout"). This gives the running test(s) time to fail with an informative