Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit ae4bb9d

Browse files
committed
test: update interop tests to latest ipfsd-ctl and init process
1 parent ea0215c commit ae4bb9d

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"stream": "readable-stream"
1515
},
1616
"go-ipfs": {
17-
"version": "v0.4.5-pre1"
17+
"version": "v0.4.7"
1818
},
1919
"engines": {
2020
"node": ">=4.0.0",
@@ -76,7 +76,7 @@
7676
"form-data": "^2.1.2",
7777
"gulp": "^3.9.1",
7878
"interface-ipfs-core": "~0.25.0",
79-
"ipfsd-ctl": "~0.19.0",
79+
"ipfsd-ctl": "~0.20.0",
8080
"left-pad": "^1.1.3",
8181
"lodash": "^4.17.4",
8282
"mocha": "^3.2.0",

test/interop/daemons/js.js

+13-9
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,23 @@ class JsDaemon {
4545
this.port = opts.port
4646

4747
this.path = opts.path || tmpDir()
48+
let repo
4849
if (this.init) {
49-
this.ipfs = new IPFS({
50-
repo: this.path
51-
})
50+
repo = this.path
5251
} else {
53-
const repo = new IPFSRepo(this.path, {stores: require('fs-pull-blob-store')})
54-
this.ipfs = new IPFS({
55-
repo: repo,
56-
EXPERIMENTAL: {
57-
pubsub: true
58-
}
52+
repo = new IPFSRepo(this.path, {
53+
stores: require('fs-pull-blob-store')
5954
})
6055
}
56+
this.ipfs = new IPFS({
57+
repo: repo,
58+
init: false,
59+
start: false,
60+
EXPERIMENTAL: {
61+
pubsub: true
62+
}
63+
})
64+
6165
this.node = null
6266
this.api = null
6367
}

0 commit comments

Comments
 (0)