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 4c78444
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testing/cloude2e/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ func (suite *TestSuite) TestFleetServerStatusOK() {
var resp *http.Response
for ctx.Err() == nil {
resp, err = suite.client.Do(req)
if err != nil {
t.Logf("Request error: %v", err)
}
if resp != nil && resp.StatusCode == http.StatusOK {
break
} else {
t.Logf("Response status %d", resp.StatusCode)
}
time.Sleep(time.Second)
}
Expand Down

0 comments on commit 4c78444

Please sign in to comment.