mirror of
https://github.com/libp2p/go-libp2p.git
synced 2026-04-22 16:17:19 +08:00
quicreuse: fix incorrect skip in TestReuseListenOnSpecificInterface
The skip logic was inverted
This commit is contained in:
@@ -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)
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user