Skip to content

Commit

Permalink
Merge pull request #3092 from Juliusan/bugfixes
Browse files Browse the repository at this point in the history
Increase timeout to cover slow environments such as GitHub's CI
  • Loading branch information
Juliusan authored Nov 17, 2023
2 parents 70f254e + f108c3e commit ff99794
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func TestSnapshots(t *testing.T) {
for i := 0; i < 7; i++ {
env.sendTimerTickToNodes(timerTickPeriod) // Timer tick is not necessary; it's just a way to advance artificial timer
}
require.True(env.t, snapM.WaitSnapshotCreatedCount(snapshotCount, 10*time.Millisecond, 100)) // To allow threads, that "create snapshots", to wake up
require.True(env.t, snapM.WaitSnapshotCreatedCount(snapshotCount, 10*time.Millisecond, 1000)) // To allow threads, that "create snapshots", to wake up
for i := range blocks {
if (uint32(i)+1)%snapshotCreatePeriod == 0 && i < blockCount-int(snapshotDelayPeriod) {
snapshotsReady[i] = true
Expand Down

0 comments on commit ff99794

Please sign in to comment.