waku_test.go: adapt TestWakuV2Store

This commit is contained in:
Ivan Folgueira Bande 2024-09-17 14:01:08 +02:00
parent 8cf6cdcd27
commit 94dc345d8e
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
1 changed files with 3 additions and 3 deletions

View File

@ -560,11 +560,11 @@ func TestWakuV2Store(t *testing.T) {
}()
// Connect the two nodes directly
peer2Addr := w2.ListenAddresses()[0].String()
err = w1.DialPeer(context.Background(), peer2Addr)
peer2Addr, err := w2.ListenAddresses()
require.NoError(t, err)
waitForPeerConnection(t, w2.Host().ID(), w1PeersCh)
err = w1.DialPeer(peer2Addr[0])
require.NoError(t, err)
// Create a filter for the second node to catch messages
filter := &common.Filter{