mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-06-23 04:11:48 +00:00
release
This commit is contained in:
@ -1,8 +1,15 @@
|
||||
var Id = require('peer-id')
|
||||
|
||||
module.exports.all = function (test, common) {
|
||||
test('a test', function (t) {
|
||||
test('Simple findPeers test', function (t) {
|
||||
common.setup(test, function (err, pr) {
|
||||
t.plan(1)
|
||||
t.plan(3)
|
||||
t.ifError(err)
|
||||
pr.findPeers(Id.create().toBytes(), function (err, peerQueue) {
|
||||
t.ifError(err)
|
||||
t.equal(peerQueue.length >= 1, true)
|
||||
// common.teardown()
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user