From 4b483356bba8d3ae957b3a16b7b4a0aeec560646 Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Fri, 30 Jan 2026 16:22:49 +0100 Subject: [PATCH] fix test_waku_keepalive --- tests/test_waku_keepalive.nim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_waku_keepalive.nim b/tests/test_waku_keepalive.nim index a21bba384..845262731 100644 --- a/tests/test_waku_keepalive.nim +++ b/tests/test_waku_keepalive.nim @@ -9,7 +9,12 @@ import libp2p/stream/bufferstream, libp2p/stream/connection, libp2p/crypto/crypto -import waku/waku_core, waku/waku_node, ./testlib/wakucore, ./testlib/wakunode +import + waku/waku_core, + waku/waku_node, + waku/node/peer_manager, + ./testlib/wakucore, + ./testlib/wakunode suite "Waku Keepalive": asyncTest "handle ping keepalives": @@ -22,7 +27,7 @@ suite "Waku Keepalive": var completionFut = newFuture[bool]() proc pingHandler(peerId: PeerID) {.async, gcsafe.} = - info "Ping received" + info "Ping received", peerId, node1PeerId = node1.switch.peerInfo.peerId let checkPeerIdMatch = peerId == node1.switch.peerInfo.peerId completionFut.complete(checkPeerIdMatch)