Procházet zdrojové kódy

Stabilize external HTTP network test

pull/531/head
Mauro Marques Filho před 1 měsícem
rodič
revize
22b207f422
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3
    1
      network/network_test.go

+ 3
- 1
network/network_test.go Zobrazit soubor

@@ -57,7 +57,9 @@ func (suite *NetworkTestSuite) TestRealHTTPRequest() {
57 57
 	client := ntw.MakeHTTPClient(nil)
58 58
 
59 59
 	resp, err := client.Get("https://httpbin.org/headers") //nolint: noctx
60
-	suite.NoError(err)
60
+	if err != nil {
61
+		suite.T().Skipf("httpbin.org is unavailable: %v", err)
62
+	}
61 63
 
62 64
 	defer resp.Body.Close() //nolint: errcheck
63 65
 

Načítá se…
Zrušit
Uložit