Skip to content

Commit

Permalink
fix: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod authored and GrapeBaBa committed Jun 3, 2024
1 parent ba87b9d commit 1ae723d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions p2p/discover/portal_protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ func TestPortalWireProtocolUdp(t *testing.T) {
assert.NoError(t, err)
time.Sleep(10 * time.Second)

node1.putCacheNodeId(node2.localNode.Node())
node1.putCacheNodeId(node3.localNode.Node())

node2.putCacheNodeId(node1.localNode.Node())
node2.putCacheNodeId(node3.localNode.Node())

node3.putCacheNodeId(node1.localNode.Node())
node3.putCacheNodeId(node2.localNode.Node())

udpAddrStr1 := fmt.Sprintf("%s:%d", node1.localNode.Node().IP(), node1.localNode.Node().UDP())
udpAddrStr2 := fmt.Sprintf("%s:%d", node2.localNode.Node().IP(), node2.localNode.Node().UDP())

Expand Down

0 comments on commit 1ae723d

Please sign in to comment.