Skip to content

Commit 848a5bc

Browse files
committed
fix health status code in tests
1 parent 77f507e commit 848a5bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

connector/configuration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestConfigurationServer(t *testing.T) {
2727
t.Errorf("GET /health: expected no error, got %s", err)
2828
t.FailNow()
2929
}
30-
assertHTTPResponseStatus(t, "GET /health", res, http.StatusNoContent)
30+
assertHTTPResponseStatus(t, "GET /health", res, http.StatusOK)
3131
})
3232

3333
t.Run("GET /", func(t *testing.T) {

connector/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ func TestServerConnector(t *testing.T) {
429429
t.Errorf("expected no error, got %s", err)
430430
t.FailNow()
431431
}
432-
assertHTTPResponseStatus(t, "GET /health", res, http.StatusNoContent)
432+
assertHTTPResponseStatus(t, "GET /health", res, http.StatusOK)
433433
})
434434

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

0 commit comments

Comments
 (0)