chore: make tests faster

This commit is contained in:
David Dias 2018-02-16 18:07:24 +00:00
parent 379febb610
commit a5fd05875c

View File

@ -22,7 +22,7 @@ function createNode (multiaddrs, options, callback) {
}
waterfall([
(cb) => PeerId.create({ bits: 1024 }, cb),
(cb) => PeerId.create({ bits: 512 }, cb),
(peerId, cb) => PeerInfo.create(peerId, cb),
(peerInfo, cb) => {
multiaddrs.map((ma) => peerInfo.multiaddrs.add(ma))