aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack_test.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2016-02-05 09:37:13 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2016-02-07 03:18:28 +0000
commitfa5e5478c8791d644c3d7b07a73680f87eb5a43b (patch)
tree3c2c65ffe586c68a7d1951007a9d853bfe49eb72 /src/runtime/stack_test.go
parent54b4b946b67ab28fc8695f1fa26b98f21d366fdb (diff)
downloadgo-fa5e5478c8791d644c3d7b07a73680f87eb5a43b.tar.xz
runtime: don't call testing.Fatal from worker goroutines
Change-Id: I630d4d2d8a914d6c07f22351a56d5e44a937123e Reviewed-on: https://go-review.googlesource.com/19245 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/stack_test.go')
-rw-r--r--src/runtime/stack_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/stack_test.go b/src/runtime/stack_test.go
index fa073f19ad..928d1eca20 100644
--- a/src/runtime/stack_test.go
+++ b/src/runtime/stack_test.go
@@ -111,7 +111,8 @@ func TestStackGrowth(t *testing.T) {
select {
case <-done:
case <-time.After(20 * time.Second):
- t.Fatal("finalizer did not run")
+ t.Error("finalizer did not run")
+ return
}
}()
wg.Wait()
@@ -191,7 +192,6 @@ func TestStackGrowthCallback(t *testing.T) {
<-done
})
}()
-
wg.Wait()
}