From e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 17 Feb 2017 11:48:26 +0200 Subject: swarm/api/http: fix go vet issue on Go 1.8 --- swarm/api/http/server_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'swarm/api/http') diff --git a/swarm/api/http/server_test.go b/swarm/api/http/server_test.go index 078589097..88b49b9a5 100644 --- a/swarm/api/http/server_test.go +++ b/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) -- cgit v1.2.3