소스 검색

update http connect test

Darien Raymond 8 년 전
부모
커밋
e8901368d7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      testing/scenarios/http_test.go

+ 2 - 0
testing/scenarios/http_test.go

@@ -125,6 +125,8 @@ func TestHttpConnectMethod(t *testing.T) {
 		payload := make([]byte, 1024*64)
 		common.Must2(rand.Read(payload))
 		req, err := http.NewRequest("Connect", "http://"+dest.NetAddr()+"/", bytes.NewReader(payload))
+		req.Header.Set("X-a", "b")
+		req.Header.Set("X-b", "d")
 		common.Must(err)
 
 		resp, err := client.Do(req)