Skip to content

Commit

Permalink
use yamux in websocket tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Apr 25, 2022
1 parent 0ee251d commit 5fa9e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/transport/websocket/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"github.com/libp2p/go-libp2p-core/sec/insecure"
"github.com/libp2p/go-libp2p-core/test"
"github.com/libp2p/go-libp2p-core/transport"
"github.com/libp2p/go-libp2p/p2p/muxer/yamux"

csms "github.com/libp2p/go-conn-security-multistream"
mplex "github.com/libp2p/go-libp2p-mplex"
ttransport "github.com/libp2p/go-libp2p-testing/suites/transport"
tptu "github.com/libp2p/go-libp2p-transport-upgrader"

Expand All @@ -35,7 +35,7 @@ import (
func newUpgrader(t *testing.T) (peer.ID, transport.Upgrader) {
t.Helper()
id, m := newSecureMuxer(t)
u, err := tptu.New(m, new(mplex.Transport))
u, err := tptu.New(m, yamux.DefaultTransport)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 5fa9e67

Please sign in to comment.