diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2013-09-22 17:31:08 +1000 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2013-09-22 17:31:08 +1000 |
commit | b277579ce7cf3bee5d11fa4f82d6d3b865b566de (patch) | |
tree | 18ce55efb1cfd7138a8011bc35b63b4bb634908a | |
parent | f2c794f0194aea2ea85ca0042f11994e14200810 (diff) | |
download | go-b277579ce7cf3bee5d11fa4f82d6d3b865b566de.tar.gz |
runtime/pprof: run TestGoroutineSwitch for longer
Short test now takes about 0.5 second here.
Fixes issue 6417.
The failure was also seen on our builders.
R=golang-dev, minux.ma, r
CC=golang-dev
https://codereview.appspot.com/13321048
-rw-r--r-- | src/pkg/runtime/pprof/pprof_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/runtime/pprof/pprof_test.go b/src/pkg/runtime/pprof/pprof_test.go index 419178415..f7bb487b7 100644 --- a/src/pkg/runtime/pprof/pprof_test.go +++ b/src/pkg/runtime/pprof/pprof_test.go @@ -183,11 +183,11 @@ func TestCPUProfileWithFork(t *testing.T) { // If it did, it would see inconsistent state and would either record an incorrect stack // or crash because the stack was malformed. func TestGoroutineSwitch(t *testing.T) { - // How much to try. These defaults take about 1 seconds - // on a 2012 MacBook Pro. The ones in short mode take - // about 0.1 seconds. + // How much to try. These defaults take about 6 seconds + // on a 2011 Windows 7 64 bit notebook. The ones in short mode take + // about 0.6 seconds. tries := 10 - count := 1000000 + count := 4000000 if testing.Short() { tries = 1 } |