aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-11-09 20:38:11 -0500
committerRuss Cox <rsc@golang.org>2017-11-10 01:42:10 +0000
commita10884838aabb854e3a6595791c663bb16ca32ca (patch)
tree1623e967c743f31ee4dec0a206849675fa1f6cbd /src/cmd/vendor/github.com
parent821e3f7d85e4f05d83f5f93e99bf299a6bfc9034 (diff)
downloadgo-a10884838aabb854e3a6595791c663bb16ca32ca.tar.xz
cmd/vendor/.../pprof: do not run test that opens web browser
Obviously not OK. For #22651. Change-Id: I4238045bec6e50788daaa27a7fbc1d547e72cde9 Reviewed-on: https://go-review.googlesource.com/76870 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/vendor/github.com')
-rw-r--r--src/cmd/vendor/github.com/google/pprof/internal/driver/webui_test.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/internal/driver/webui_test.go b/src/cmd/vendor/github.com/google/pprof/internal/driver/webui_test.go
index 76565eb8ee..96380a01b3 100644
--- a/src/cmd/vendor/github.com/google/pprof/internal/driver/webui_test.go
+++ b/src/cmd/vendor/github.com/google/pprof/internal/driver/webui_test.go
@@ -25,13 +25,22 @@ import (
"regexp"
"sync"
"testing"
+ "time"
+
+ "runtime"
"github.com/google/pprof/internal/plugin"
"github.com/google/pprof/profile"
- "runtime"
)
func TestWebInterface(t *testing.T) {
+ // This test starts a web browser in a background goroutine
+ // after a 500ms delay. Sometimes the test exits before it
+ // can run the browser, but sometimes the browser does open.
+ // That's obviously unacceptable.
+ defer time.Sleep(2 * time.Second) // to see the browser open
+ t.Skip("golang.org/issue/22651")
+
if runtime.GOOS == "nacl" {
t.Skip("test assumes tcp available")
}
@@ -124,6 +133,8 @@ func TestWebInterface(t *testing.T) {
}
}
wg.Wait()
+
+ time.Sleep(5 * time.Second)
}
// Implement fake object file support.