Skip to content

Commit

Permalink
Rework deadline assertion logging to be more clear
Browse files Browse the repository at this point in the history
Make `TestServerRequestTimeout` deadline assertion log print expected
and actual values in the same format for more clear troubleshooting.

Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez committed Feb 25, 2023
1 parent 32fab23 commit 5a7c8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func TestServerRequestTimeout(t *testing.T) {

dl, _ := ctx.Deadline()
if result.Deadline != dl.UnixNano() {
t.Fatalf("expected deadline %v, actual: %v", dl, result.Deadline)
t.Fatalf("expected deadline %v, actual: %v", dl, time.Unix(0, result.Deadline))
}
}

Expand Down

0 comments on commit 5a7c8fb

Please sign in to comment.