diff --git a/p2p/transport/webtransport/transport_test.go b/p2p/transport/webtransport/transport_test.go index bd41446218..6c40a698a3 100644 --- a/p2p/transport/webtransport/transport_test.go +++ b/p2p/transport/webtransport/transport_test.go @@ -845,10 +845,8 @@ func TestH3ConnClosed(t *testing.T) { NextProtos: []string{http3.NextProtoH3}, }, nil) require.NoError(t, err) - rt := &http3.SingleDestinationRoundTripper{ - Connection: conn, - } - rt.Start() + rt := &http3.Transport{} + rt.NewClientConn() require.Eventually(t, func() bool { c := http.Client{ Transport: rt,