mirror of
https://github.com/coredns/coredns.git
synced 2026-07-10 09:40:12 -04:00
Test: Fix flaky health test (#8239)
This commit is contained in:
@@ -104,8 +104,8 @@ func TestHealthHTTPS(t *testing.T) {
|
||||
|
||||
hc := NewHealthChecker("TestHealthHTTPS", transport.HTTPS, true, ".")
|
||||
hc.SetTLSConfig(s.Client().Transport.(*http.Transport).TLSClientConfig)
|
||||
hc.SetReadTimeout(10 * time.Millisecond)
|
||||
hc.SetWriteTimeout(10 * time.Millisecond)
|
||||
hc.SetReadTimeout(1 * time.Second)
|
||||
hc.SetWriteTimeout(1 * time.Second)
|
||||
|
||||
p := NewProxy("TestHealthHTTPS", s.URL, transport.HTTPS)
|
||||
p.readTimeout = 10 * time.Millisecond
|
||||
|
||||
Reference in New Issue
Block a user