Просмотр исходного кода

internal/driver: skip tests requiring tcp on js (#373)

This commit upstreams the changes made in golang.org/cl/110096. As the
change says, it is acceptable for the new js/wasm target to only support
what nacl supports right now.
Daniel Martí 7 лет назад
Родитель
Сommit
943b86b5fa
2 измененных файлов: 3 добавлений и 3 удалений
  1. 1
    1
      internal/driver/fetch_test.go
  2. 2
    2
      internal/driver/webui_test.go

+ 1
- 1
internal/driver/fetch_test.go Просмотреть файл

@@ -361,7 +361,7 @@ func closedError() string {
361 361
 }
362 362
 
363 363
 func TestHttpsInsecure(t *testing.T) {
364
-	if runtime.GOOS == "nacl" {
364
+	if runtime.GOOS == "nacl" || runtime.GOOS == "js" {
365 365
 		t.Skip("test assumes tcp available")
366 366
 	}
367 367
 	saveHome := os.Getenv(homeEnv())

+ 2
- 2
internal/driver/webui_test.go Просмотреть файл

@@ -33,7 +33,7 @@ import (
33 33
 )
34 34
 
35 35
 func TestWebInterface(t *testing.T) {
36
-	if runtime.GOOS == "nacl" {
36
+	if runtime.GOOS == "nacl" || runtime.GOOS == "js" {
37 37
 		t.Skip("test assumes tcp available")
38 38
 	}
39 39
 
@@ -237,7 +237,7 @@ func makeFakeProfile() *profile.Profile {
237 237
 }
238 238
 
239 239
 func TestGetHostAndPort(t *testing.T) {
240
-	if runtime.GOOS == "nacl" {
240
+	if runtime.GOOS == "nacl" || runtime.GOOS == "js" {
241 241
 		t.Skip("test assumes tcp available")
242 242
 	}
243 243