diff --git a/.gitignore b/.gitignore index 2228b05..cb5c33a 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ Thumbs.db cover* tmp/ docs/tls/DESIGN.md +:q +qqq \ No newline at end of file diff --git a/internal/probation/server_test.go b/internal/probation/server_test.go index b51d15e..f594bff 100644 --- a/internal/probation/server_test.go +++ b/internal/probation/server_test.go @@ -58,6 +58,8 @@ func TestHealthServer_Start(t *testing.T) { server := NewHealthServer() server.Start() + defer server.Stop() + response, err := http.Get("http://localhost:51031/livez") if err != nil { t.Error(err) @@ -67,7 +69,5 @@ func TestHealthServer_Start(t *testing.T) { t.Errorf("Expected status code %v, got %v", http.StatusAccepted, response.StatusCode) } - logrus.Infof("recevied a response from the probe server: %v", response) - - server.Stop() + logrus.Infof("received a response from the probe server: %v", response) }