libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.github.io/js-libp2p/
Other
2.34k stars 447 forks source link

chore: make dht tests deterministic #2837

Closed achingbrain closed 3 days ago

achingbrain commented 3 days ago

Because getClosestPeersOffline now only returns peers that are closer than the caller, we have to sort the test dhts by closeness to query targets before using them.

Change checklist