Skip to content

Commit

Permalink
- address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ciroque committed Dec 19, 2023
1 parent bd31460 commit 27791c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ Thumbs.db
cover*
tmp/
docs/tls/DESIGN.md
:q
qqq
6 changes: 3 additions & 3 deletions internal/probation/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
}

0 comments on commit 27791c4

Please sign in to comment.