mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
fix: in case of port listening conflict
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user