]> Cypherpunks repositories - gostls13.git/commitdiff
testing: fix bogus benchmark
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 24 Feb 2014 17:12:44 +0000 (21:12 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 24 Feb 2014 17:12:44 +0000 (21:12 +0400)
Fatal must not be called from secondary goroutines.
Fixes #7401.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/67820047

src/pkg/testing/benchmark_test.go

index 9997b9920424509670b61166e94fa20406f37e72..f7ea64e7f1c89076acada85c27e01739e8c288f9 100644 (file)
@@ -88,7 +88,6 @@ func TestRunParallelFail(t *testing.T) {
                        // w/o crashing/deadlocking the whole benchmark.
                        b.Log("log")
                        b.Error("error")
-                       b.Fatal("fatal")
                })
        })
 }