TUN-6517: Use QUIC stream context while proxying HTTP requests and TCP connections

This commit is contained in:
Igor Postelnik
2022-07-07 18:01:37 -05:00
parent 06f7ba4523
commit 1733fe8c65
2 changed files with 12 additions and 11 deletions

View File

@@ -477,7 +477,7 @@ func TestBuildHTTPRequest(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
req, err := buildHTTPRequest(test.connectRequest, test.body)
req, err := buildHTTPRequest(context.Background(), test.connectRequest, test.body)
assert.NoError(t, err)
test.req = test.req.WithContext(req.Context())
assert.Equal(t, test.req, req.Request)