diff --git a/test/client.test.js b/test/client.test.js index fb8e09e..e2c7d66 100644 --- a/test/client.test.js +++ b/test/client.test.js @@ -21,20 +21,20 @@ const password = ''; let ipfs, ipfsDaemon; const IpfsApis = [ -{ - // js-ipfs - start: () => { - return new Promise((resolve, reject) => { - const IPFS = require('ipfs') - const ipfs = new IPFS(); - ipfs.goOnline((err) => { - if(err) reject(err) - else resolve(ipfs) - }); - }); - }, - stop: () => new Promise((resolve, reject) => ipfs.goOffline(resolve)) -}, +// { +// // js-ipfs +// start: () => { +// return new Promise((resolve, reject) => { +// const IPFS = require('ipfs') +// const ipfs = new IPFS(); +// ipfs.goOnline((err) => { +// if(err) reject(err) +// else resolve(ipfs) +// }); +// }); +// }, +// stop: () => new Promise((resolve, reject) => ipfs.goOffline(resolve)) +// }, { // js-ipfs-api via local daemon start: () => { diff --git a/test/counterdb.test.js b/test/counterdb.test.js index 8da0ea7..f55ee5c 100644 --- a/test/counterdb.test.js +++ b/test/counterdb.test.js @@ -19,17 +19,19 @@ const username2 = 'rennurtset'; const ipfsPath = '/tmp/orbittests'; let ipfs, ipfsDaemon; -const IpfsApis = [{ - // js-ipfs - start: () => { - return new Promise((resolve, reject) => { - const IPFS = require('ipfs') - const ipfs = new IPFS(); - ipfs.goOnline(() => resolve(ipfs)); - }); - }, - stop: () => new Promise((resolve, reject) => ipfs.goOffline(resolve)) -}, { +const IpfsApis = [ +// { +// // js-ipfs +// start: () => { +// return new Promise((resolve, reject) => { +// const IPFS = require('ipfs') +// const ipfs = new IPFS(); +// ipfs.goOnline(() => resolve(ipfs)); +// }); +// }, +// stop: () => new Promise((resolve, reject) => ipfs.goOffline(resolve)) +// }, +{ // js-ipfs-api via local daemon start: () => { return new Promise((resolve, reject) => { @@ -49,7 +51,8 @@ const IpfsApis = [{ }, stop: () => Promise.resolve() // stop: () => new Promise((resolve, reject) => ipfsDaemon.stopDaemon(resolve)) -}]; +} +]; // OrbitServer.start(); // uncomment if running this test suite stand-alone IpfsApis.forEach(function(ipfsApi) {