Skip to content

Commit

Permalink
assert errors instead of require
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Nov 23, 2023
1 parent e63c26c commit ef7a82f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/cloude2e/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ func (suite *TestSuite) TestFleetServerStatusOK() {
}
time.Sleep(time.Second)
}
suite.Require().NoError(err)
suite.Assert().NoError(err)
suite.Require().Equal(http.StatusOK, resp.StatusCode)

var body StatusResp
err = json.NewDecoder(resp.Body).Decode(&body)
resp.Body.Close()
suite.Require().NoError(err)
suite.Assert().NoError(err)
suite.Require().Equal("HEALTHY", body.Status)

}

0 comments on commit ef7a82f

Please sign in to comment.