diff --git a/pkg/ingester/flush_test.go b/pkg/ingester/flush_test.go index 883842b273d..b213421d625 100644 --- a/pkg/ingester/flush_test.go +++ b/pkg/ingester/flush_test.go @@ -37,8 +37,8 @@ func TestSweepImmediateDropsSamples(t *testing.T) { notify := make(chan struct{}) ing.preFlushChunks = func() { if ing.State() == services.Running { - notify <- struct{}{} pushSample(t, ing, <-samples) + notify <- struct{}{} } }