]> Cypherpunks repositories - gostls13.git/commitdiff
net: use t.Fatalf, not t.Fatal, in test
authorIan Lance Taylor <iant@golang.org>
Wed, 18 Nov 2015 19:10:59 +0000 (11:10 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 Nov 2015 21:55:38 +0000 (21:55 +0000)
Found by cmd/vet.

Change-Id: Id570ecd76c3f1efd9696680ccd9799610217f8f7
Reviewed-on: https://go-review.googlesource.com/17042
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/net_test.go

index e51745a0333ebef05e1a50250a554bc53e29e9ba..6dcfc2190e03c5675a75d5952f7a5fcefbe9fbcf 100644 (file)
@@ -282,5 +282,5 @@ func TestListenCloseListen(t *testing.T) {
                }
                t.Errorf("failed on try %d/%d: %v", tries+1, maxTries, err)
        }
-       t.Fatal("failed to listen/close/listen on same address after %d tries", maxTries)
+       t.Fatalf("failed to listen/close/listen on same address after %d tries", maxTries)
 }