Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions p2p/transport/quicreuse/reuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestReuseConnectionWhenDialBeforeListen(t *testing.T) {
}

func TestReuseListenOnSpecificInterface(t *testing.T) {
if platformHasRoutingTables() {
if !platformHasRoutingTables() {
t.Skip("this test only works on platforms that support routing tables")
}
reuse := newReuse(nil, nil, defaultListenUDP, defaultSourceIPSelectorFn, nil, nil)
Expand All @@ -185,7 +185,7 @@ func TestReuseListenOnSpecificInterface(t *testing.T) {
// dial
conn, err := reuse.TransportWithAssociationForDial(nil, "udp4", raddr)
require.NoError(t, err)
require.Equal(t, 1, conn.GetCount())
require.Equal(t, 2, conn.GetCount())
}

func TestReuseGarbageCollect(t *testing.T) {
Expand Down
Loading