From: Ian Lance Taylor Date: Tue, 29 Oct 2019 13:39:01 +0000 (-0700) Subject: context: mark testDeadline as a testing helper method X-Git-Tag: go1.14beta1~516 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a0c1e8d1ab07068e14b5abcd02099dbfb932188b;p=gostls13.git context: mark testDeadline as a testing helper method Change-Id: Ie6fc3e9789aea6e5949e66186db6f2b071b6fdff Reviewed-on: https://go-review.googlesource.com/c/go/+/204037 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/context/context_test.go b/src/context/context_test.go index 869b02c92e..cff09fd322 100644 --- a/src/context/context_test.go +++ b/src/context/context_test.go @@ -253,6 +253,7 @@ func XTestChildFinishesFirst(t testingT) { } func testDeadline(c Context, name string, failAfter time.Duration, t testingT) { + t.Helper() select { case <-time.After(failAfter): t.Fatalf("%s: context should have timed out", name)