From 01e8fa3b9de59deb7b36a277c84f06498ce81289 Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:50:28 +0300 Subject: [PATCH] fix: unit test --- pkg/storer/compact_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/storer/compact_test.go b/pkg/storer/compact_test.go index 3606e7c8c9d..4e4f883f8c1 100644 --- a/pkg/storer/compact_test.go +++ b/pkg/storer/compact_test.go @@ -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)