Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Jan 17, 2024
1 parent 56d9dbb commit 01e8fa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storer/compact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ func TestCompact(t *testing.T) {
}
}

c, unsub := st.Events().Subscribe("batchExpiryDone")
t.Cleanup(unsub)

err = st.EvictBatch(ctx, evictBatch.ID)
if err != nil {
t.Fatal(err)
}

c, unsub := st.Events().Subscribe("batchExpiryDone")
t.Cleanup(unsub)
<-c

time.Sleep(time.Second)
Expand Down

0 comments on commit 01e8fa3

Please sign in to comment.