mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Fix healthz test error handling
This commit is contained in:
parent
808be2d13b
commit
eafd142dfa
@ -27,7 +27,7 @@ func TestInstallHandler(t *testing.T) {
|
|||||||
InstallHandler(mux)
|
InstallHandler(mux)
|
||||||
req, err := http.NewRequest("GET", "http://example.com/healthz", nil)
|
req, err := http.NewRequest("GET", "http://example.com/healthz", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Unexpected error: %v", err)
|
t.Fatalf("Unexpected error: %v", err)
|
||||||
}
|
}
|
||||||
w := httptest.NewRecorder()
|
w := httptest.NewRecorder()
|
||||||
mux.ServeHTTP(w, req)
|
mux.ServeHTTP(w, req)
|
||||||
|
Loading…
Reference in New Issue
Block a user