libp2p / go-ws-transport

a websocket implementation of a go-libp2p transport
Other
60 stars 18 forks source link

failing transport tests #99

Open marten-seemann opened 3 years ago

marten-seemann commented 3 years ago

The TestWebsocketTransport test fails when using the upgraded go-libp2p-testing. https://github.com/libp2p/go-ws-transport/blob/0e282510a08349cfb4f6ee12704968c3c0c6e266/websocket_test.go#L44-L56


=== 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