mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
swarm/api/http: handle error in TestBzzGetPath
This commit is contained in:
parent
bac384dadc
commit
20aece618b
1 changed files with 3 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ func TestBzzGetPath(t *testing.T) {
|
|||
}
|
||||
defer resp.Body.Close()
|
||||
respbody, err = ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
t.Fatalf("Read request body: %v", err)
|
||||
}
|
||||
|
||||
if string(respbody) != key[v].String() {
|
||||
isexpectedfailrequest := false
|
||||
|
|
|
|||
Loading…
Reference in a new issue