aboutsummaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-10-29 06:39:01 -0700
committerIan Lance Taylor <iant@golang.org>2019-10-29 14:22:15 +0000
commita0c1e8d1ab07068e14b5abcd02099dbfb932188b (patch)
tree0f5969bdfe6dfb91db99938ec9d77455d5580903 /src/context
parentec10e6f364dddef88223eb9ddda1ee900b1551cb (diff)
downloadgo-a0c1e8d1ab07068e14b5abcd02099dbfb932188b.tar.gz
go-a0c1e8d1ab07068e14b5abcd02099dbfb932188b.zip
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 <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/context')
-rw-r--r--src/context/context_test.go1
1 files changed, 1 insertions, 0 deletions
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)