mirror of https://github.com/grpc/grpc-java.git
api: DeadlineSubject should include actual on failure
This was noticed because of a CallOptionsTest flake that had a surprising error: ``` expected : 59.983387319 but was : 59.983387319 outside tolerance in seconds: 0.01 ```
This commit is contained in:
parent
55cef6330f
commit
0192bece47
|
|
@ -67,7 +67,7 @@ public final class DeadlineSubject extends ComparableSubject {
|
|||
if (Math.abs(actualNanos - expectedNanos) > deltaNanos) {
|
||||
failWithoutActual(
|
||||
fact("expected", expectedNanos / NANOSECONDS_IN_A_SECOND),
|
||||
fact("but was", expectedNanos / NANOSECONDS_IN_A_SECOND),
|
||||
fact("but was", actualNanos / NANOSECONDS_IN_A_SECOND),
|
||||
fact("outside tolerance in seconds", deltaNanos / NANOSECONDS_IN_A_SECOND));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue