Skip to content

Commit

Permalink
log pod fork resp
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed Nov 11, 2024
1 parent f079cea commit e0214c0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cmd/dfs/cmd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,13 +941,19 @@ func TestApis(t *testing.T) {
t.Fatal(err)
}

if podForkResp.StatusCode != 200 {
forkRespErr, err := io.ReadAll(podForkResp.Body)
if err != nil {
t.Fatal(err)
}
t.Log(string(forkRespErr))
podForkResp.Body.Close()
t.Fatal("pod fork failed with status code:", podForkResp.StatusCode)
}
err = podForkResp.Body.Close()
if err != nil {
t.Fatal(err)
}
if podForkResp.StatusCode != 200 {
t.Fatal("pod fork failed")
}
podOpenRequest := &common.PodRequest{
PodName: podForkRequest.ForkName,
}
Expand Down

0 comments on commit e0214c0

Please sign in to comment.