Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

failing transport tests #99

Open
marten-seemann opened this issue Dec 19, 2020 · 0 comments
Open

failing transport tests #99

marten-seemann opened this issue Dec 19, 2020 · 0 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@marten-seemann
Copy link
Contributor

The TestWebsocketTransport test fails when using the upgraded go-libp2p-testing.

func TestWebsocketTransport(t *testing.T) {
ta := New(&tptu.Upgrader{
Secure: insecure.New("peerA"),
Muxer: new(mplex.Transport),
})
tb := New(&tptu.Upgrader{
Secure: insecure.New("peerB"),
Muxer: new(mplex.Transport),
})
zero := "/ip4/127.0.0.1/tcp/0/ws"
ttransport.SubtestTransport(t, ta, tb, zero, "peerA")
}

=== RUN   TestWebsocketTransport/github.com/libp2p/go-libp2p-testing/suites/transport.SubtestStress1Conn1000Stream10Msg
panic: Fail in goroutine after TestWebsocketTransport/github.com/libp2p/go-libp2p-testing/suites/transport.SubtestStress50Conn10Stream50Msg has completed

goroutine 2994 [running]:
testing.(*common).Fail(0xc000923080)
        /usr/local/Cellar/go/1.15.5/libexec/src/testing/testing.go:688 +0x125
testing.(*common).Error(0xc000923080, 0xc001263f98, 0x1, 0x1)
        /usr/local/Cellar/go/1.15.5/libexec/src/testing/testing.go:788 +0x78
github.com/libp2p/go-libp2p-testing/suites/transport.echoStream(0xc000923080, 0x170d760, 0xc0027448f0)
        /Users/marten/src/go/pkg/mod/github.com/libp2p/go-libp2p-testing@v0.4.0/suites/transport/stream_suite.go:109 +0x26d
created by github.com/libp2p/go-libp2p-testing/suites/transport.goServe.func1.1
        /Users/marten/src/go/pkg/mod/github.com/libp2p/go-libp2p-testing@v0.4.0/suites/transport/stream_suite.go:145 +0x4b
exit status 2
@marten-seemann marten-seemann added the kind/bug A bug in existing code (including security flaws) label Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

1 participant