cleanup and refactor health service
All checks were successful
Gitea Docker Build Demo / Test (push) Successful in 1m2s
Gitea Docker Build Demo / Build_Image (push) Successful in 1m22s

This commit is contained in:
2025-10-07 11:13:15 +02:00
parent 60844be81b
commit d3682557b1
7 changed files with 42 additions and 32 deletions

View File

@@ -7,8 +7,9 @@ import (
)
func TestHealth(t *testing.T) {
hs := NewHealthServer()
go func() {
StartHealthEndpoint()
hs.Start()
}()
request, _ := http.NewRequest(http.MethodGet, "http://localhost:8080/health", strings.NewReader(""))
resp, err := http.DefaultClient.Do(request)