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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user