test(transport/http):fix nil problem (#1406)

pull/1411/head
Casper-Mars 3 years ago committed by GitHub
parent 0ec3ff0b46
commit 515b71ec90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      transport/http/server_test.go

@ -89,11 +89,10 @@ func testClient(t *testing.T, srv *Server) {
continue
}
}
defer resp.Body.Close()
if err != nil {
t.Fatal(err)
}
defer resp.Body.Close()
if resp.StatusCode != 200 {
t.Fatalf("http status got %d", resp.StatusCode)
}

Loading…
Cancel
Save