Commit 56069ae4 authored by Aaron Schlesinger's avatar Aaron Schlesinger

Fix tests

parent fe3afa80
...@@ -10,7 +10,7 @@ func TestProbesServer(t *testing.T) { ...@@ -10,7 +10,7 @@ func TestProbesServer(t *testing.T) {
mux := newProbesMux() mux := newProbesMux()
srv := httptest.NewServer(mux) srv := httptest.NewServer(mux)
defer srv.Close() defer srv.Close()
resp, err := http.Get("/readiness") resp, err := http.Get(srv.URL + "/readiness")
if err != nil { if err != nil {
t.Fatalf("GET /readiness returned an error (%s)", err) t.Fatalf("GET /readiness returned an error (%s)", err)
} }
...@@ -18,7 +18,7 @@ func TestProbesServer(t *testing.T) { ...@@ -18,7 +18,7 @@ func TestProbesServer(t *testing.T) {
t.Fatalf("GET /readiness returned status code %d, expected %d", resp.StatusCode, http.StatusOK) t.Fatalf("GET /readiness returned status code %d, expected %d", resp.StatusCode, http.StatusOK)
} }
resp, err = http.Get("/liveness") resp, err = http.Get(srv.URL + "/liveness")
if err != nil { if err != nil {
t.Fatalf("GET /liveness returned an error (%s)", err) t.Fatalf("GET /liveness returned an error (%s)", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment