From 81a54f762debcc775149994db4d649ce7baefb0c Mon Sep 17 00:00:00 2001 From: haad Date: Tue, 26 Apr 2016 16:55:42 +0200 Subject: [PATCH] Use disposableApi for tests --- test/client.test.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/client.test.js b/test/client.test.js index 54d7b1e..a808900 100644 --- a/test/client.test.js +++ b/test/client.test.js @@ -18,22 +18,22 @@ const ipfsPath = '/tmp/orbittests'; const startIpfs = () => { return new Promise((resolve, reject) => { - // ipfsd.disposableApi((err, ipfs) => { - // if(err) console.error(err); - // resolve(ipfs); - // }); - ipfsd.local((err, node) => { - if(err) reject(err); - node.startDaemon((err, ipfs) => { - if(err) reject(err); - resolve(ipfs); - }); + ipfsd.disposableApi((err, ipfs) => { + if(err) console.error(err); + resolve(ipfs); }); + // ipfsd.local((err, node) => { + // if(err) reject(err); + // node.startDaemon((err, ipfs) => { + // if(err) reject(err); + // resolve(ipfs); + // }); + // }); }); }; describe('Orbit Client', function() { - this.timeout(20000); + this.timeout(30000); let ipfs, client, db; let channel = 'abcdefgh';