1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-01 18:47:25 +01:00

chore: updates total test for collector (#2847)

This commit is contained in:
Amir Raminfar
2024-03-24 18:45:09 -07:00
committed by GitHub
parent 293f6a075b
commit 0639320dca

View File

@@ -46,4 +46,9 @@ func TestSubscribe(t *testing.T) {
assert.True(t, ok, "canceler should be stored")
assert.False(t, collector.Start(ctx), "second start should return false")
assert.Equal(t, int32(2), collector.totalStarted.Load(), "total started should be 2")
collector.Stop()
assert.Equal(t, int32(1), collector.totalStarted.Load(), "total started should be 1")
}