Skip to content

Commit 561dfd9

Browse files
authored
Fix TelemetryRunnableSpecification (DataDog#5236)
1 parent fc0da56 commit 561dfd9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

telemetry/src/test/groovy/datadog/telemetry/TelemetryRunnableSpecification.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class TelemetryRunnableSpecification extends DDSpecification {
5555
1 * telemetryService.addConfiguration(_)
5656
1 * periodicAction.doIteration(telemetryService)
5757
1 * telemetryService.addStartedRequest()
58+
1 * telemetryService.getMetricsInterval()
5859

5960
then:
6061
1 * periodicAction.doIteration(telemetryService)
@@ -96,6 +97,7 @@ class TelemetryRunnableSpecification extends DDSpecification {
9697
1 * telemetryService.addConfiguration(_)
9798
1 * periodicAction.doIteration(telemetryService)
9899
1 * telemetryService.addStartedRequest()
100+
1 * telemetryService.getMetricsInterval()
99101

100102
then:
101103
1 * periodicAction.doIteration(telemetryService)
@@ -131,6 +133,7 @@ class TelemetryRunnableSpecification extends DDSpecification {
131133
1 * telemetryService.addConfiguration(_)
132134
1 * periodicAction.doIteration(telemetryService)
133135
1 * telemetryService.addStartedRequest()
136+
1 * telemetryService.getMetricsInterval()
134137

135138
then:
136139
1 * periodicAction.doIteration(telemetryService)
@@ -164,6 +167,7 @@ class TelemetryRunnableSpecification extends DDSpecification {
164167
1 * telemetryService.addConfiguration(_)
165168
1 * periodicAction.doIteration(telemetryService)
166169
1 * telemetryService.addStartedRequest()
170+
1 * telemetryService.getMetricsInterval()
167171

168172
then:
169173
1 * periodicAction.doIteration(telemetryService)
@@ -178,6 +182,7 @@ class TelemetryRunnableSpecification extends DDSpecification {
178182
1 * sleeper.sleep(3_000)
179183

180184
then:
185+
1 * telemetryService.getMetricsInterval()
181186
1 * periodicAction.doIteration(telemetryService)
182187
1 * telemetryService.prepareRequests() >> queue
183188
1 * okHttpClient.newCall(REQUEST) >> call

0 commit comments

Comments
 (0)