Skip to content

Commit 3dc7098

Browse files
committed
Fix data race in cacher whitebox test
Signed-off-by: Gaurav Singh <[email protected]>
1 parent ec0eec6 commit 3dc7098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ func testCacherSendBookmarkEvents(t *testing.T, allowWatchBookmarks, expectedBoo
681681
go func() {
682682
deadline := time.Now().Add(time.Second)
683683
for i := 0; time.Now().Before(deadline); i++ {
684-
err = cacher.watchCache.Add(&examplev1.Pod{
684+
err := cacher.watchCache.Add(&examplev1.Pod{
685685
ObjectMeta: metav1.ObjectMeta{
686686
Name: fmt.Sprintf("pod-%d", i),
687687
Namespace: "ns",

0 commit comments

Comments
 (0)