Преглед изворни кода

Skip TestNewListenerAndURL on NaCl (#201)

* Skip TestNewListenerAndURL on NaCl

* Updated skip message
Margaret Nolan пре 7 година
родитељ
комит
98de691089
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5
    0
      internal/driver/webui_test.go

+ 5
- 0
internal/driver/webui_test.go Прегледај датотеку

@@ -23,6 +23,7 @@ import (
23 23
 	"net/url"
24 24
 	"os/exec"
25 25
 	"regexp"
26
+	"runtime"
26 27
 	"testing"
27 28
 
28 29
 	"github.com/google/pprof/internal/plugin"
@@ -193,6 +194,10 @@ func makeFakeProfile() *profile.Profile {
193 194
 }
194 195
 
195 196
 func TestNewListenerAndURL(t *testing.T) {
197
+	if runtime.GOOS == "nacl" {
198
+		t.Skip("test assumes tcp available")
199
+	}
200
+
196 201
 	tests := []struct {
197 202
 		hostport  string
198 203
 		wantErr   bool