Commit fa5e5478 authored by Mikio Hara's avatar Mikio Hara

runtime: don't call testing.Fatal from worker goroutines

Change-Id: I630d4d2d8a914d6c07f22351a56d5e44a937123e
Reviewed-on: https://go-review.googlesource.com/19245Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 54b4b946
...@@ -111,7 +111,8 @@ func TestStackGrowth(t *testing.T) { ...@@ -111,7 +111,8 @@ func TestStackGrowth(t *testing.T) {
select { select {
case <-done: case <-done:
case <-time.After(20 * time.Second): case <-time.After(20 * time.Second):
t.Fatal("finalizer did not run") t.Error("finalizer did not run")
return
} }
}() }()
wg.Wait() wg.Wait()
...@@ -191,7 +192,6 @@ func TestStackGrowthCallback(t *testing.T) { ...@@ -191,7 +192,6 @@ func TestStackGrowthCallback(t *testing.T) {
<-done <-done
}) })
}() }()
wg.Wait() wg.Wait()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment