From 4837504e5715becb38a6b09348608976257b3c2c Mon Sep 17 00:00:00 2001 From: Marek Schmidt Date: Fri, 10 Apr 2026 16:10:11 +0200 Subject: [PATCH] don't pass the t's logger to the adapter as the adapter may still run and log with the logger after the test is done, thus causing a data race --- pkg/adapter/apiserver/adapter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/adapter/apiserver/adapter_test.go b/pkg/adapter/apiserver/adapter_test.go index dc408a8aae6..07bf0c67db9 100644 --- a/pkg/adapter/apiserver/adapter_test.go +++ b/pkg/adapter/apiserver/adapter_test.go @@ -350,7 +350,7 @@ func TestAdapter_FailFast(t *testing.T) { } ctx, _ := pkgtesting.SetupFakeContext(t) - logger := logging.FromContext(ctx).Named("adapter-test") + logger := zap.NewNop().Sugar() a := &apiServerAdapter{ ce: ce,