Skip to content

Commit

Permalink
add logging to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ckousik committed Oct 9, 2022
1 parent 56d7ca0 commit 1e0375f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion p2p/transport/webrtc/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestTransportWebRTC_ListenerCanCreateStreams(t *testing.T) {

stream, err := conn.OpenStream(context.Background())
require.NoError(t, err)
t.Logf("stream opened by listener")
t.Logf("listener opened stream")
_, err = stream.Write([]byte("test"))
require.NoError(t, err)
}()
Expand Down Expand Up @@ -190,8 +190,10 @@ func TestTransportWebRTC_DialerCanCreateStreams(t *testing.T) {
go func() {
conn, err := tr1.Dial(context.Background(), listener.Multiaddr(), listeningPeer)
require.NoError(t, err)
t.Logf("dialer opened connection")
stream, err := conn.OpenStream(context.Background())
require.NoError(t, err)
t.Logf("dialer opened stream")
_, err = stream.Write([]byte("test"))
require.NoError(t, err)

Expand Down

0 comments on commit 1e0375f

Please sign in to comment.