Browse Source

swarm/api/http: fix go vet issue on Go 1.8

Péter Szilágyi 8 years ago
parent
commit
e94dfb78f8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      swarm/api/http/server_test.go

+ 3 - 0
swarm/api/http/server_test.go

@@ -113,6 +113,9 @@ func TestBzzrGetPath(t *testing.T) {
 			url += common.ToHex(key[0])[2:] + "/" + k[1:] + "?content_type=text/plain"
 		}
 		resp, err = http.Get(url)
+		if err != nil {
+			t.Fatalf("Request failed: %v", err)
+		}
 		defer resp.Body.Close()
 		respbody, err = ioutil.ReadAll(resp.Body)