Skip to content

Commit

Permalink
wal: reduce flake in TestConcurrentWritersWithManyRecords
Browse files Browse the repository at this point in the history
Informs #4035
  • Loading branch information
sumeerbhola committed Nov 25, 2024
1 parent 3ec779d commit 9efb5b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wal/failover_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ func TestConcurrentWritersWithManyRecords(t *testing.T) {
if i > 0 && i%switchInterval == 0 {
dirIndex = (dirIndex + 1) % 2
ww.switchToNewDir(dirs[dirIndex])
// switchToNewDir does not synchronously create the new writer, so wait
// until the writer is created.
<-logWriterCreated
}
}
time.Sleep(5 * time.Millisecond)
Expand Down

0 comments on commit 9efb5b8

Please sign in to comment.