Skip to content

Commit

Permalink
Add logging to test
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Nov 23, 2023
1 parent ef7a82f commit eb59ac0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testing/cloude2e/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@ func (suite *TestSuite) TestFleetServerStatusOK() {
var resp *http.Response
for ctx.Err() == nil {
resp, err = suite.client.Do(req)
if resp != nil && resp.StatusCode == http.StatusOK {
break
if err != nil {
t.Logf("Request error: %v", err)
}
if resp != nil {
if resp.StatusCode == http.StatusOK {
break
}
t.Logf("Response status %d", resp.StatusCode)
}
time.Sleep(time.Second)
}
Expand Down

0 comments on commit eb59ac0

Please sign in to comment.