diff --git a/output/cloud/expv2/output_test.go b/output/cloud/expv2/output_test.go index 190867c746a..4b1b0ae681f 100644 --- a/output/cloud/expv2/output_test.go +++ b/output/cloud/expv2/output_test.go @@ -170,7 +170,7 @@ func TestOutputHandleFlushError(t *testing.T) { testStopFunc: func(error) { stopFuncCalled = true }, - stopSendingMetrics: make(chan struct{}), + stopMetricsCollection: make(chan struct{}), } o.config.StopOnError = null.BoolFrom(tc.abort) @@ -182,7 +182,7 @@ func TestOutputHandleFlushError(t *testing.T) { <-done select { - case <-o.stopSendingMetrics: + case <-o.stopMetricsCollection: stopMetricCollection = true default: }