Closed romanzac closed 6 months ago
The test code seems to be having some gaps which is causing the test to fail. There is no issue in peerExchange client/server.
I had updated test code locally and verified it. Seems to be working fine.
Suggested changes in the PR to be made for test to succeed.
Describe the bug Peer exchange works in my unit test with three hosts: host1 being a retrieving host, host2 to be retrieved by host1 host3 is a client connecting to host1
When I check the peerstore on host3 after the peer exchange finished, I cannot find host2.ID.
To Reproduce Check out https://github.com/waku-org/go-waku/pull/1046/commits/71878e3ee7eb1c60996b9ee35a1d3e9e1db772f4 cd go-waku/waku/v2/protocol/peer_exchange go test -run TestRetrieveProvidePeerExchangeWithPM
Expected behavior Peerstore on host3 contains info about host2 after the peer exchange. Documentation mentions Alice should receive list of ENRs, however I don't see in the code how can I obtain this list from PeerConnectionStrategy utility. https://docs.waku.org/learn/concepts/peer-exchange/
Logs