mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
cmd/swarm/global-store: fix err shadowing in testHTTP
This commit is contained in:
parent
dcf4000166
commit
62256c6eb1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue