Skip to content

Commit 478d9e1

Browse files
committed
Fix an issue in robustness test that watch created in the ClientSet is
closed wrongly Signed-off-by: Chun-Hung Tseng <[email protected]>
1 parent adb5c97 commit 478d9e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/robustness/client/watch.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func CollectClusterWatchEvents(ctx context.Context, param CollectClusterWatchEve
4848
if err != nil {
4949
return err
5050
}
51-
defer c.Close()
5251
err = watchUntilRevision(ctx, param.Lg, c, memberMaxRevisionChan, param.Cfg)
5352
reports[i] = c.Report()
5453
return err
@@ -71,7 +70,6 @@ func CollectClusterWatchEvents(ctx context.Context, param CollectClusterWatchEve
7170
if err != nil {
7271
return err
7372
}
74-
defer c.Close()
7573
return openWatchPeriodically(ctx, &g, c, param.BackgroundWatchConfig, finish)
7674
})
7775
}

0 commit comments

Comments
 (0)