mirror of https://github.com/grpc/grpc-java.git
We can just compare the Deadline instances instead of asserting that very little time has passed during the test. Real time probably still matters in the test, but only insofar that the deadline is not expired by the time ClientCallImpl sees it. This fixes a test failure seen in the emulated aarch64 CI. Note that the message says "ns" when it should say "ms", but this change deletes the code with that typo. ``` java.lang.AssertionError: timeout: 548 ns at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.assertTrue(Assert.java:42) at io.grpc.internal.ClientCallImplTest.assertTimeoutBetween(ClientCallImplTest.java:1102) at io.grpc.internal.ClientCallImplTest.contextDeadlineShouldBePropagatedToStream(ClientCallImplTest.java:828) ``` |
||
|---|---|---|
| .. | ||
| src | ||
| BUILD.bazel | ||
| build.gradle | ||