diff --git a/service/collector_test.go b/service/collector_test.go index 5526bb71f87..099f2147ba8 100644 --- a/service/collector_test.go +++ b/service/collector_test.go @@ -135,7 +135,6 @@ func TestCollector_Start(t *testing.T) { }, time.Second*2, time.Millisecond*200) } -// Calling shutdown before collector is running should not stop it from running func TestCollector_ShutdownBeforeRun(t *testing.T) { // use a mock AppTelemetry struct to return an error on shutdown preservedAppTelemetry := collectorTelemetry @@ -153,7 +152,7 @@ func TestCollector_ShutdownBeforeRun(t *testing.T) { col, err := New(set) require.NoError(t, err) - // Shutdown here should not close the shutdown chan + // Calling shutdown before collector is running should not stop it from running col.Shutdown() select { case <-col.shutdownChan: