diff --git a/package.json b/package.json index cf17fc45c..50804285f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "Travis Person " ], "devDependencies": { - "ipfsd-ctl": "0.2.3", + "ipfsd-ctl": "0.3.0", "mocha": "^2.2.5", "pre-commit": "^1.0.6", "standard": "^3.3.2" diff --git a/test/test.js b/test/test.js index 86a947a69..d2f45e370 100644 --- a/test/test.js +++ b/test/test.js @@ -13,8 +13,11 @@ describe('ipfs node api', function () { this.timeout(20000) ipfsd.disposable(function (err, node) { if (err) throw err - ipfs = ipfsApi(node.opts['Addresses.API']) - done() + node.startDaemon(function (err, ignore) { + if (err) throw err + ipfs = ipfsApi(node.apiAddr) + done() + }) }) })