Skip to content

Commit

Permalink
Increase Aggregator Test Timeout (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon authored Feb 21, 2022
1 parent 9c4ae82 commit 0c6d2dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/outputs/cloudwatch/aggregator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ func TestAggregator_MultipleAggregationPeriods(t *testing.T) {
aggregator.AddMetric(m)

assertNoMetricsInChan(t, metricChan)
assertMetricContent(t, metricChan, aggregationInterval * 2, m, expectedFieldContent{"value", 3, 1, 3, 6, "",
assertMetricContent(t, metricChan, aggregationInterval * 3, m, expectedFieldContent{"value", 3, 1, 3, 6, "",
[]float64{1.0488088481701516, 2.0438317370604793, 2.992374046230249}, []float64{1, 1, 1}})

assertNoMetricsInChan(t, metricChan)

assertMetricContent(t, metricChan, aggregationInterval * 2, m, expectedFieldContent{"value", 5, 4, 2, 9, "",
assertMetricContent(t, metricChan, aggregationInterval * 3, m, expectedFieldContent{"value", 5, 4, 2, 9, "",
[]float64{3.9828498555324616, 4.819248325194279}, []float64{1, 1}},
expectedFieldContent{"2nd value", 2, 1, 2, 3, "",
[]float64{1.0488088481701516, 2.0438317370604793}, []float64{1, 1}})
Expand All @@ -140,7 +140,7 @@ func TestAggregator_ShutdownBehavior(t *testing.T) {
close(shutdownChan)
wg.Wait()

assertMetricContent(t, metricChan, 0 * time.Second, m, expectedFieldContent{"value", 1, 1, 1, 1, "", []float64{1.0488088481701516}, []float64{1}})
assertMetricContent(t, metricChan, 1 * time.Second, m, expectedFieldContent{"value", 1, 1, 1, 1, "", []float64{1.0488088481701516}, []float64{1}})
assertNoMetricsInChan(t, metricChan)
}

Expand Down

0 comments on commit 0c6d2dd

Please sign in to comment.