Skip to content

Commit

Permalink
Sort addrs when comparing in test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Apr 15, 2024
1 parent 9b5e20a commit c82a204
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/protocol/identify/id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ func assertCorrectEvtPeerIdentificationCompleted(t *testing.T, evtAny interface{
otherAddrsStrings[i] = a.String()
evtAddrStrings[i] = evt.ListenAddrs[i].String()
}
slices.Sort(otherAddrsStrings)
slices.Sort(evtAddrStrings)
require.Equal(t, otherAddrsStrings, evtAddrStrings)
}

Expand Down

0 comments on commit c82a204

Please sign in to comment.