Skip to content

Commit 2a88ea2

Browse files
serathiuskishen-v
authored andcommitted
Prevent flakes with TestWatchRestore
Signed-off-by: Marek Siarkowicz <[email protected]> (cherry picked from commit 9671fb3)
1 parent 6088ddf commit 2a88ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/storage/mvcc/watchable_store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ func readEventsForSecond(t *testing.T, ws <-chan WatchResponse) []mvccpb.Event {
676676
events = append(events, resp.Events...)
677677
case <-deadline:
678678
return events
679-
case <-time.After(watchResyncPeriod):
679+
case <-time.After(watchResyncPeriod * 3 / 2):
680680
return events
681681
}
682682
}

0 commit comments

Comments
 (0)