From a0c1e8d1ab07068e14b5abcd02099dbfb932188b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 29 Oct 2019 06:39:01 -0700 Subject: [PATCH] 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 --- src/context/context_test.go | 1 + 1 file changed, 1 insertion(+) 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)