From ae4bb9d9de089f5ea672f10de471174c59cc152c Mon Sep 17 00:00:00 2001 From: David Dias Date: Tue, 21 Mar 2017 09:17:37 +0000 Subject: [PATCH] test: update interop tests to latest ipfsd-ctl and init process --- package.json | 4 ++-- test/interop/daemons/js.js | 22 +++++++++++++--------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 7806dd778b..380aeb0fd8 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "stream": "readable-stream" }, "go-ipfs": { - "version": "v0.4.5-pre1" + "version": "v0.4.7" }, "engines": { "node": ">=4.0.0", @@ -76,7 +76,7 @@ "form-data": "^2.1.2", "gulp": "^3.9.1", "interface-ipfs-core": "~0.25.0", - "ipfsd-ctl": "~0.19.0", + "ipfsd-ctl": "~0.20.0", "left-pad": "^1.1.3", "lodash": "^4.17.4", "mocha": "^3.2.0", diff --git a/test/interop/daemons/js.js b/test/interop/daemons/js.js index fffeef714c..a0d0376f32 100644 --- a/test/interop/daemons/js.js +++ b/test/interop/daemons/js.js @@ -45,19 +45,23 @@ class JsDaemon { this.port = opts.port this.path = opts.path || tmpDir() + let repo if (this.init) { - this.ipfs = new IPFS({ - repo: this.path - }) + repo = this.path } else { - const repo = new IPFSRepo(this.path, {stores: require('fs-pull-blob-store')}) - this.ipfs = new IPFS({ - repo: repo, - EXPERIMENTAL: { - pubsub: true - } + repo = new IPFSRepo(this.path, { + stores: require('fs-pull-blob-store') }) } + this.ipfs = new IPFS({ + repo: repo, + init: false, + start: false, + EXPERIMENTAL: { + pubsub: true + } + }) + this.node = null this.api = null }