From 835f16671f6fcd082aac63cd6ee879b8b18653aa Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 17 Jul 2018 14:44:45 +0100 Subject: [PATCH] removed test --- package.json | 4 ++-- test/ipns.js | 63 ---------------------------------------------------- 2 files changed, 2 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index 0c933042..90a91606 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/ipns.js b/test/ipns.js index c13d68cc..829bf729 100644 --- a/test/ipns.js +++ b/test/ipns.js @@ -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)