Rework deadline assertion logging to be more clear
Make `TestServerRequestTimeout` deadline assertion log print expected and actual values in the same format for more clear troubleshooting. Signed-off-by: Austin Vazquez <macedonv@amazon.com>
This commit is contained in:
parent
32fab23746
commit
5a7c8fbf15
@ -404,7 +404,7 @@ func TestServerRequestTimeout(t *testing.T) {
|
|||||||
|
|
||||||
dl, _ := ctx.Deadline()
|
dl, _ := ctx.Deadline()
|
||||||
if result.Deadline != dl.UnixNano() {
|
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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user