Skip to content

Commit 549214c

Browse files
committed
Fix bug
Signed-off-by: Gaurav Singh <[email protected]>
1 parent 3dc7098 commit 549214c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,9 @@ func testCacherSendBookmarkEvents(t *testing.T, allowWatchBookmarks, expectedBoo
680680
resourceVersion := uint64(1000)
681681
go func() {
682682
deadline := time.Now().Add(time.Second)
683+
var err error
683684
for i := 0; time.Now().Before(deadline); i++ {
684-
err := cacher.watchCache.Add(&examplev1.Pod{
685+
err = cacher.watchCache.Add(&examplev1.Pod{
685686
ObjectMeta: metav1.ObjectMeta{
686687
Name: fmt.Sprintf("pod-%d", i),
687688
Namespace: "ns",

0 commit comments

Comments
 (0)