-
Notifications
You must be signed in to change notification settings - Fork 18
transport tests failing #37
Comments
Hi, https://github.com/libp2p/go-libp2p-testing/blob/master/suites/transport/transport_suite.go#L144
|
That does seems strange to me. According to https://pkg.go.dev/github.com/libp2p/[email protected]/mux#MuxedStream:
@raulk could you give us some clarity on this? |
That's correct. |
Ok, does that mean the go-libp2p-testing suite is violating this behavior or are we overlooking something? It seems to first close the steam and then try to read it using Maybe this was meant to be a deferred close? |
A deferred close won't work. We need to close the write side of the stream, so the peer's |
Yea, makes sense. This means:
|
Also please have a look at this |
Actually, point 2 in my previous comment may not apply. This transport is currently not meant to do stream muxing by itself. Is is supposed to use an external muxer for that: https://github.com/libp2p/go-libp2p-webrtc-direct/blob/master/webrtcdirect_test.go#L20. So maybe fixing point 1 in my previous comment could be enough to fix the tests. |
When updating go-libp2p-testing, the transport tests fail:
go-libp2p-webrtc-direct/webrtcdirect_test.go
Lines 14 to 29 in 0a5a6f1
The text was updated successfully, but these errors were encountered: