fix: in case of port listening conflict

This commit is contained in:
fengcaiwen
2025-12-22 11:42:54 +08:00
parent 0d3882ed3c
commit 7416f3e6dc
2 changed files with 2 additions and 8 deletions

View File

@@ -921,8 +921,5 @@ func (u *ut) startupHttpServer(t *testing.T, addr, str string) {
mux.HandleFunc("/", health)
mux.HandleFunc("/health", health)
t.Logf("Start listening http addr %s ...", addr)
err := http.ListenAndServe(addr, mux)
if err != nil {
t.Fatal(err)
}
_ = http.ListenAndServe(addr, mux)
}