1
0
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:
Casper-Mars
2021-09-01 16:02:30 +08:00
committed by GitHub
parent 0ec3ff0b46
commit 515b71ec90
+1 -2
View File
@@ -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)
}