1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00

longer sleep for flaky test

This commit is contained in:
Umputun 2021-06-06 18:20:38 -05:00
parent aea74d717f
commit 15616dfa57

View File

@ -101,7 +101,7 @@ func TestHttp_healthHandler(t *testing.T) {
go func() { go func() {
_ = h.Run(ctx) _ = h.Run(ctx)
}() }()
time.Sleep(20 * time.Millisecond) time.Sleep(50 * time.Millisecond)
client := http.Client{} client := http.Client{}
req, err := http.NewRequest("GET", "http://127.0.0.1:"+strconv.Itoa(port)+"/health", nil) req, err := http.NewRequest("GET", "http://127.0.0.1:"+strconv.Itoa(port)+"/health", nil)