aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/http/server_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-17 17:48:26 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-17 17:48:26 +0800
commite94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5 (patch)
treed1fbf5c8f41467b855dcf4c5d00dd34eb1b3fe22 /swarm/api/http/server_test.go
parentbdef758d5c6d397584d0c35e53d6f6c318e61351 (diff)
downloadgo-tangerine-e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5.tar
go-tangerine-e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5.tar.gz
go-tangerine-e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5.tar.bz2
go-tangerine-e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5.tar.lz
go-tangerine-e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5.tar.xz
go-tangerine-e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5.tar.zst
go-tangerine-e94dfb78f8e9087eae1c1cd3d41b0a124b9a2dd5.zip
swarm/api/http: fix go vet issue on Go 1.8
Diffstat (limited to 'swarm/api/http/server_test.go')
-rw-r--r--swarm/api/http/server_test.go3
1 files changed, 3 insertions, 0 deletions
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)