Skip to content

Commit

Permalink
ipn/ipnlocal: fix failing test (tailscale#10937)
Browse files Browse the repository at this point in the history
Updates#cleanup

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
  • Loading branch information
irbekrm committed Jan 23, 2024
1 parent 6ee9563 commit 75f1d3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ipn/ipnlocal/serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,11 @@ func TestServeHTTPProxyPath(t *testing.T) {
URL: &url.URL{Path: tt.requestPath},
TLS: &tls.ConnectionState{ServerName: "example.ts.net"},
}
req = req.WithContext(context.WithValue(req.Context(), serveHTTPContextKey{}, &serveHTTPContext{
DestPort: 443,
SrcAddr: netip.MustParseAddrPort("1.2.3.4:1234"), // random src
}))
req = req.WithContext(serveHTTPContextKey.WithValue(req.Context(),
&serveHTTPContext{
DestPort: 443,
SrcAddr: netip.MustParseAddrPort("1.2.3.4:1234"), // random src
}))

w := httptest.NewRecorder()
b.serveWebHandler(w, req)
Expand Down

0 comments on commit 75f1d3e

Please sign in to comment.