Skip to content

Commit 9385461

Browse files
committed
nit
1 parent 3986c22 commit 9385461

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

firebase-perf/src/test/java/com/google/firebase/perf/session/gauges/GaugeManagerTest.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public void testStartCollectingGaugesDoesNotLogMetrics() {
145145
PerfSession fakeSession = createTestPerfSession();
146146
testGaugeManager.startCollectingGaugeMetrics(fakeSession);
147147
assertThat(fakeScheduledExecutorService.isEmpty()).isTrue();
148+
assertThatNothingWasLoggedToTransport();
148149
}
149150

150151
@Test
@@ -380,7 +381,7 @@ public void testStartCollectingGaugesDoesNotStartAJobToConsumeTheGeneratedMetric
380381
fakeMemoryGaugeCollector.memoryMetricReadings.add(fakeMemoryMetricReading2);
381382

382383
fakeScheduledExecutorService.simulateSleepExecutingAtMostOneTask();
383-
assertThatNothingWasLoggedToTransport(ApplicationProcessState.FOREGROUND);
384+
assertThatNothingWasLoggedToTransport();
384385
}
385386

386387
@Test
@@ -581,12 +582,10 @@ private GaugeMetric getLastRecordedGaugeMetric(
581582

582583
/**
583584
* Asserts that no metric was logged to transport.
584-
*
585-
* @param applicationProcessState The {@link ApplicationProcessState} that it was collected for.
586585
*/
587-
private void assertThatNothingWasLoggedToTransport(
588-
ApplicationProcessState applicationProcessState) {
589-
verify(mockTransportManager, never()).log((GaugeMetric) any(), eq(applicationProcessState));
586+
private void assertThatNothingWasLoggedToTransport() {
587+
verify(mockTransportManager, never())
588+
.log((GaugeMetric) any(), any(ApplicationProcessState.class));
590589
}
591590

592591
private void assertThatCpuGaugeMetricWasSentToTransport(

0 commit comments

Comments
 (0)