diff --git a/pkg/activator/handler/main_test.go b/pkg/activator/handler/main_test.go index 85823ecb76a6..4ea142dc0207 100644 --- a/pkg/activator/handler/main_test.go +++ b/pkg/activator/handler/main_test.go @@ -203,6 +203,8 @@ func TestActivatorChainHandlerWithFullDuplex(t *testing.T) { defer proxyServer.Close() transport := http.DefaultTransport.(*http.Transport).Clone() + transport.MaxIdleConnsPerHost = 10 + transport.MaxIdleConns = 100 // Turning on this will hide the issue transport.DisableKeepAlives = false @@ -222,7 +224,7 @@ func TestActivatorChainHandlerWithFullDuplex(t *testing.T) { go func(i int) { defer wg.Done() - for i := 0; i < 1000; i++ { + for i := 0; i < 100; i++ { if err := send(c, proxyServer.URL, body, "test-host"); err != nil { t.Errorf("error during request: %v", err) }