Skip to content

Commit

Permalink
Fixed flakey test by waiting for complete before doing dirty migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyaxod committed Feb 26, 2024
1 parent e1a7d31 commit 30c03ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/storage/migrator/migrator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ func TestMigratorWithReaderWriter(t *testing.T) {

mig.Migrate(num_blocks)

err = mig.WaitForCompletion()
assert.NoError(t, err)

for {
blocks := mig.GetLatestDirty()
if blocks == nil {
Expand Down

0 comments on commit 30c03ad

Please sign in to comment.