mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
test(transport/http):fix nil problem (#1406)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user