Skip to content

Commit 4ae04b7

Browse files
authored
core: increased test tolerance to 1 second
Fixes grpc#11680
1 parent 5431bf7 commit 4ae04b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/io/grpc/internal/InstantTimeProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void testInstantCurrentTimeNanos() throws Exception {
4444
+ instantNow.getNano();
4545

4646
// Validate the time returned is close to the expected value within a tolerance
47-
// (i,e 10 millisecond tolerance in nanoseconds).
48-
assertThat(actualTimeNanos).isWithin(10_000_000L).of(expectedTimeNanos);
47+
// (i,e 1000 millisecond (1 second) tolerance in nanoseconds).
48+
assertThat(actualTimeNanos).isWithin(1000_000_000L).of(expectedTimeNanos);
4949
}
5050
}

0 commit comments

Comments
 (0)