Skip to content

Commit

Permalink
fix: closes body
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiTyping committed Oct 5, 2024
1 parent acfc227 commit b702c0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ func requireRunningMetricsServer(t *testing.T, logs *observer.ObservedLogs, port
require.NoError(t, err, fmt.Sprintf("Metrics server should be running on port %d", port))
res, err := http.Get(fmt.Sprintf("http://127.0.0.1:%d/metrics", port))
require.NoError(t, err)
defer res.Body.Close()
require.Equal(t, res.StatusCode, 200)
}

Expand All @@ -351,6 +352,7 @@ func requireRunningDebugServer(t *testing.T, logs *observer.ObservedLogs, port i
require.NoError(t, err, fmt.Sprintf("Server should be running on port %d", port))
res, err := http.Get(fmt.Sprintf("http://127.0.0.1:%d/debug/pprof/goroutine", port))
require.NoError(t, err)
defer res.Body.Close()
require.Equal(t, res.StatusCode, 200)
}

Expand Down

0 comments on commit b702c0b

Please sign in to comment.