Skip to content

Commit 1b96081

Browse files
authored
fix: Addressing provider cache test flake (#4639)
1 parent 0209de0 commit 1b96081

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/providercache/provider_cache_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ func TestProviderCache(t *testing.T) {
105105
t.Run(fmt.Sprintf("testCase-%d", i), func(t *testing.T) {
106106
t.Parallel()
107107

108-
ctx := t.Context()
108+
// Create a new context for each test case to avoid interference
109+
//
110+
//nolint:usetesting
111+
ctx := context.Background()
109112
ctx, cancel := context.WithCancel(ctx)
110113
defer cancel()
111114

0 commit comments

Comments
 (0)