Slide 19
Slide 19 text
t.Deadline()
https://godoc.org/testing#T.Deadline
Deadline reports the time at which the test binary will have exceeded
the timeout specified by the -timeout flag.
The ok result is false if the -timeout flag indicates “no timeout” (0).
% go test -v -timeout=5s
-run=TestDeadlineConfirm
t.Deadline() = 2020-08-31 18:37:39.502862
+0900 JST m=+5.000488349, timeout set = true
$ go test -v -timeout=0
-run=TestDeadlineConfirm
t.Deadline() = 0001-01-01 00:00:00 +0000
UTC, timeout set = false