Selaa lähdekoodia

Stabilize external HTTP network test

pull/531/head
Mauro Marques Filho 1 kuukausi sitten
vanhempi
commit
22b207f422
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3
    1
      network/network_test.go

+ 3
- 1
network/network_test.go Näytä tiedosto

@@ -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
 

Loading…
Peruuta
Tallenna