Browse Source

Slightly more robust HTTP stress test

Jakob Borg 11 years ago
parent
commit
7d1c720b84
1 changed files with 4 additions and 1 deletions
  1. 4 1
      test/httpstress_test.go

+ 4 - 1
test/httpstress_test.go

@@ -51,7 +51,10 @@ func TestStressHTTP(t *testing.T) {
 
 	tc := &tls.Config{InsecureSkipVerify: true}
 	tr := &http.Transport{
-		TLSClientConfig: tc,
+		TLSClientConfig:       tc,
+		DisableKeepAlives:     true,
+		ResponseHeaderTimeout: time.Second,
+		TLSHandshakeTimeout:   time.Second,
 	}
 	client := &http.Client{
 		Transport: tr,