Fix metrics test race
Sometimes a dev machine can be fast enough that birthTime is the same as currentTime. That's ok. Change-Id: I5901580bfc41ae844a456d306bf0c41349727c25
This commit is contained in:
@@ -56,7 +56,7 @@ public class ProcMetricModuleTest {
|
||||
@Test
|
||||
public void testProcUptime() {
|
||||
Gauge<Long> birth = gauge("proc/birth_timestamp");
|
||||
assertThat(birth.getValue()).isLessThan(
|
||||
assertThat(birth.getValue()).isAtMost(
|
||||
TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis()));
|
||||
|
||||
Gauge<Long> uptime = gauge("proc/uptime");
|
||||
|
||||
Reference in New Issue
Block a user