File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
firebase-perf/src/test/java/com/google/firebase/perf/session/gauges Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ public void testGaugeCounterStartsAJobToConsumeTheGeneratedMetrics() {
346
346
// There's still no job to log the gauges.
347
347
assertThat (fakeScheduledExecutorService .isEmpty ()).isTrue ();
348
348
349
- generateMetricsAndIncrementCounter (5 );
349
+ generateMetricsAndIncrementCounter (2 );
350
350
351
351
assertThat (fakeScheduledExecutorService .isEmpty ()).isFalse ();
352
352
assertThat (fakeScheduledExecutorService .getDelayToNextTask (TimeUnit .MILLISECONDS ))
@@ -366,7 +366,7 @@ public void testGaugeCounterStartsAJobToConsumeTheGeneratedMetrics() {
366
366
int recordedGaugeMetricsCount =
367
367
recordedGaugeMetric .getAndroidMemoryReadingsCount ()
368
368
+ recordedGaugeMetric .getCpuMetricReadingsCount ();
369
- assertThat (recordedGaugeMetricsCount ).isEqualTo (29 );
369
+ assertThat (recordedGaugeMetricsCount ).isEqualTo (26 );
370
370
371
371
assertThat (recordedGaugeMetric .getSessionId ()).isEqualTo (testSessionId (1 ));
372
372
}
@@ -608,6 +608,8 @@ private long getMinimumBackgroundCollectionFrequency() {
608
608
609
609
// Simulates the behavior of Cpu and Memory Gauge collector.
610
610
private void generateMetricsAndIncrementCounter (int count ) {
611
+ // TODO(b/394127311): Explore actually collecting metrics using the fake Cpu and Memory
612
+ // metric collectors.
611
613
Random random = new Random ();
612
614
for (int i = 0 ; i < count ; ++i ) {
613
615
if (random .nextInt (2 ) == 0 ) {
You can’t perform that action at this time.
0 commit comments