diff --git a/internal/docker/stats_collector_test.go b/internal/docker/stats_collector_test.go index 8d071a3b..9f4cd198 100644 --- a/internal/docker/stats_collector_test.go +++ b/internal/docker/stats_collector_test.go @@ -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") }