Skip to content

Commit 0192bec

Browse files
committed
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 ```
1 parent 55cef63 commit 0192bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/testFixtures/java/io/grpc/testing/DeadlineSubject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void of(Deadline expected) {
6767
if (Math.abs(actualNanos - expectedNanos) > deltaNanos) {
6868
failWithoutActual(
6969
fact("expected", expectedNanos / NANOSECONDS_IN_A_SECOND),
70-
fact("but was", expectedNanos / NANOSECONDS_IN_A_SECOND),
70+
fact("but was", actualNanos / NANOSECONDS_IN_A_SECOND),
7171
fact("outside tolerance in seconds", deltaNanos / NANOSECONDS_IN_A_SECOND));
7272
}
7373
}

0 commit comments

Comments
 (0)