cmd/swarm/global-store: fix err shadowing in testHTTP

This commit is contained in:
Janos Guljas 2019-02-05 19:36:54 +01:00
parent dcf4000166
commit 62256c6eb1

View file

@ -70,7 +70,7 @@ func testHTTP(t *testing.T, put bool, args ...string) {
// wait until global store process is started as // wait until global store process is started as
// rpc.DialHTTP is actually not connecting // rpc.DialHTTP is actually not connecting
for i := 0; i < 1000; i++ { for i := 0; i < 1000; i++ {
_, err := http.DefaultClient.Get("http://" + addr) _, err = http.DefaultClient.Get("http://" + addr)
if err == nil { if err == nil {
break break
} }