This commit is contained in:
David Dias
2015-09-19 17:42:28 +01:00
parent f15b452d34
commit 471f2ad758
3 changed files with 11 additions and 3 deletions

View File

@ -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()
})
})
})
}