]> Cypherpunks.ru repositories - gostls13.git/commitdiff
context: mark testDeadline as a testing helper method
authorIan Lance Taylor <iant@golang.org>
Tue, 29 Oct 2019 13:39:01 +0000 (06:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Oct 2019 14:22:15 +0000 (14:22 +0000)
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>
src/context/context_test.go

index 869b02c92ee99741d2bc780a3e967993bab8eb07..cff09fd322fcea0c9c1d518a33715d26996e360d 100644 (file)
@@ -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)