From 27791c419df11c1c39fd442b71fa4689adaf3282 Mon Sep 17 00:00:00 2001 From: Steve Wagner Date: Mon, 18 Dec 2023 16:45:35 -0800 Subject: [PATCH] - address PR feedback --- .gitignore | 2 ++ internal/probation/server_test.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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) }