Skip to content

Commit 3941a47

Browse files
kalleepdehaansa
authored andcommitted
stop storage and wal after test (#5056)
1 parent c48fc0d commit 3941a47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/component/prometheus/pipeline_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ func newRemoteWriteComponent(t testing.TB, logger log.Logger, ls *labelstore.Ser
207207
inMemoryAppendable := testappender.ConstantAppendable{Inner: testappender.NewCollectingAppender()}
208208
store := storage.NewFanout(fanoutLogger, walStorage, testStorage{inMemoryAppendable: inMemoryAppendable})
209209

210+
t.Cleanup(func() {
211+
store.Close()
212+
walStorage.Close()
213+
})
214+
210215
return remotewrite.NewInterceptor("prometheus.remote_write.test", &atomic.Bool{}, livedebugging.NewLiveDebugging(), ls, store), inMemoryAppendable.Inner
211216
}
212217

0 commit comments

Comments
 (0)