Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
removed test
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Jul 17, 2018
1 parent 97f10fd commit 835f166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 65 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
"eslint-plugin-react": "^7.8.2",
"expose-loader": "^0.7.5",
"form-data": "^2.3.2",
"go-ipfs-dep": "^0.4.15",
"go-ipfs-dep": "^0.4.16",
"hat": "0.0.3",
"ipfs": "~0.29.0",
"ipfs-api": "^22.0.0",
"ipfsd-ctl": "~0.37.0",
"ipfsd-ctl": "~0.38.0",
"left-pad": "^1.3.0",
"libp2p-websocket-star-rendezvous": "~0.2.3",
"lodash": "^4.17.10",
Expand Down
63 changes: 0 additions & 63 deletions test/ipns.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,69 +197,6 @@ describe('ipns', () => {
], done)
})

it('should publish cenas', function (done) {
this.timeout(100 * 1000)

const dir = path.join(os.tmpdir(), hat())
const ipfsRef = '/ipfs/QmPFVLPmp9zv5Z5KUqLhe2EivAGccQW2r7M7jhVJGLZoZU'

console.log('dir', dir)

let goDaemon1
let goDaemon2
let jsDaemon
let peerId

parallel([
(cb) => goDf.spawn({
repoPath: dir,
disposable: false,
initOptions: { bits: 1024 }
}, cb),
(cb) => goDf.spawn({ initOptions: { bits: 1024 } }, cb)
], (err, nodes) => {
expect(err).to.not.exist()

goDaemon1 = nodes[0]
goDaemon2 = nodes[1]

series([
(cb) => goDaemon1.init(cb),
(cb) => goDaemon1.start(cb),
(cb) => goDaemon2.start(cb),
(cb) => goDaemon1.api.id((err, res) => {
expect(err).to.not.exist()
peerId = res.id
cb()
}),
// (cb) => goDaemon1.api.name.publish(ipfsRef, { resolve: false }, cb),
// (cb) => goDaemon1.api.name.publish(ipfsRef, { resolve: false }, cb),
(cb) => goDaemon1.stop(cb),
(cb) => goDaemon2.stop(cb),
(cb) => jsDf.spawn({
repoPath: dir,
disposable: false,
initOptions: { bits: 512 }
}, (err, node) => {
expect(err).to.not.exist()
jsDaemon = node
cb()
}),
(cb) => jsDaemon.start(cb),
(cb) => jsDaemon.api.id((err, res) => {
expect(err).to.not.exist()
console.log('peer id js', res.id, peerId === res.id)
cb()
}),
(cb) => setTimeout(() => cb(), 2000),
(cb) => jsDaemon.api.name.publish(ipfsRef, { resolve: false }, cb),
(cb) => jsDaemon.stop(cb),
(cb) => setTimeout(cb, 2000),
(cb) => jsDaemon.cleanup(cb)
], done)
})
})

it('should publish an ipns record to a go daemon and resolve it using a js daemon through the reuse of the same repo', function (done) {
this.timeout(50 * 1000)

Expand Down

0 comments on commit 835f166

Please sign in to comment.