Skip to content

Commit

Permalink
fixing flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Oct 24, 2024
1 parent 8ddbe52 commit 65e19e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wakuv2/nwaku_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ func TestPeerExchange(t *testing.T) {
require.NoError(t, err)
require.NoError(t, pxServerNode.Start())

time.Sleep(1 * time.Second)
// Adding an extra second to make sure PX cache is not empty
time.Sleep(2 * time.Second)

serverNodeMa, err := pxServerNode.ListenAddresses()
require.NoError(t, err)
Expand Down

0 comments on commit 65e19e7

Please sign in to comment.