From bed838955fa1b15169e6d1923ed4da4c09ca555a Mon Sep 17 00:00:00 2001 From: Abhishek Kr Srivastav Date: Wed, 26 Feb 2025 10:57:02 +0530 Subject: [PATCH] Removed parallel execution for test/subtest where AllocsPerRun is used --- .../token/cache/cached_token_authenticator_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go b/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go index 14f9a26eb41..fab6381b232 100644 --- a/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go +++ b/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go @@ -552,7 +552,6 @@ func withAudit(ctx context.Context) context.Context { } func TestUnsafeConversions(t *testing.T) { - t.Parallel() // needs to be large to force allocations so we pick a random value between [1024, 2048] size := utilrand.IntnRange(1024, 2048+1) @@ -574,7 +573,6 @@ func TestUnsafeConversions(t *testing.T) { }) t.Run("toBytes allocations", func(t *testing.T) { - t.Parallel() s := utilrand.String(size) f := func() { @@ -606,7 +604,6 @@ func TestUnsafeConversions(t *testing.T) { }) t.Run("toString allocations", func(t *testing.T) { - t.Parallel() b := make([]byte, size) if _, err := rand.Read(b); err != nil {