aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/trace/trace_stack_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-10-26 22:18:02 -0400
committerRuss Cox <rsc@golang.org>2016-10-28 19:32:37 +0000
commit2a7272b42230c0d55c1ec243d123fea9ba035063 (patch)
tree385cc51fad9d92e498bc363353d600029e561d45 /src/runtime/trace/trace_stack_test.go
parent3366d6a39bbaaa011a11c651975a88d9f05e00b6 (diff)
downloadgo-2a7272b42230c0d55c1ec243d123fea9ba035063.tar.xz
runtime/trace: deflake TestTraceSymbolize
Waiting 2ms for all the kicked-off goroutines to run and block seems a little optimistic. No harm done by waiting for 200ms instead. Fixes #17238. Change-Id: I827532ea2f5f1f3ed04179f8957dd2c563946ed0 Reviewed-on: https://go-review.googlesource.com/32103 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/trace/trace_stack_test.go')
-rw-r--r--src/runtime/trace/trace_stack_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/trace/trace_stack_test.go b/src/runtime/trace/trace_stack_test.go
index 52a71bfb94..b143341f59 100644
--- a/src/runtime/trace/trace_stack_test.go
+++ b/src/runtime/trace/trace_stack_test.go
@@ -102,10 +102,10 @@ func TestTraceSymbolize(t *testing.T) {
pipeReadDone <- true
}()
- time.Sleep(time.Millisecond)
+ time.Sleep(100 * time.Millisecond)
runtime.GC()
runtime.Gosched()
- time.Sleep(time.Millisecond) // the last chance for the goroutines above to block
+ time.Sleep(100 * time.Millisecond) // the last chance for the goroutines above to block
done1 <- true
<-done2
select {