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

Commit

Permalink
test: update interop tests to latest ipfsd-ctl and init process
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Mar 21, 2017
1 parent ea0215c commit ae4bb9d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"stream": "readable-stream"
},
"go-ipfs": {
"version": "v0.4.5-pre1"
"version": "v0.4.7"
},
"engines": {
"node": ">=4.0.0",
Expand Down Expand Up @@ -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",
Expand Down
22 changes: 13 additions & 9 deletions test/interop/daemons/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ae4bb9d

Please sign in to comment.