Skip to content

Commit

Permalink
Fixed up test comment
Browse files Browse the repository at this point in the history
Signed-off-by: Corbin Phelps <corbin.phelps@bluemedora.com>
  • Loading branch information
Corbin Phelps committed Feb 17, 2022
1 parent 727599c commit 79ebdb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions service/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 79ebdb3

Please sign in to comment.