Skip to content

Commit

Permalink
fix health status code in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Feb 9, 2024
1 parent 77f507e commit 848a5bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connector/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestConfigurationServer(t *testing.T) {
t.Errorf("GET /health: expected no error, got %s", err)
t.FailNow()
}
assertHTTPResponseStatus(t, "GET /health", res, http.StatusNoContent)
assertHTTPResponseStatus(t, "GET /health", res, http.StatusOK)
})

t.Run("GET /", func(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion connector/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ func TestServerConnector(t *testing.T) {
t.Errorf("expected no error, got %s", err)
t.FailNow()
}
assertHTTPResponseStatus(t, "GET /health", res, http.StatusNoContent)
assertHTTPResponseStatus(t, "GET /health", res, http.StatusOK)
})

t.Run("GET /metrics", func(t *testing.T) {
Expand Down

0 comments on commit 848a5bc

Please sign in to comment.