Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 29a302e

Browse files
committedOct 26, 2015
remove unused stop daemon test
1 parent 929a073 commit 29a302e

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed
 

‎test/tests.js

-38
Original file line numberDiff line numberDiff line change
@@ -545,42 +545,4 @@ describe('IPFS Node.js API wrapper tests', function () {
545545

546546
it('.dht.findproovs')
547547
})
548-
/*
549-
describe('closing tests', function () {
550-
if (isNode) {
551-
// Not available in the browser
552-
it('test for error after daemon stops', function (done) {
553-
this.timeout(6000)
554-
stopIPFSNode(ipfsNodes, apiClients, 'a', finish)
555-
stopIPFSNode(ipfsNodes, apiClients, 'b', finish)
556-
stopIPFSNode(ipfsNodes, apiClients, 'c', finish)
557-
558-
var counter = 0
559-
560-
function finish () {
561-
counter++
562-
if (counter === 3) {
563-
done()
564-
}
565-
}
566-
567-
function stopIPFSNode (ipfsNodes, apiClients, key, cb) {
568-
var nodeStopped
569-
ipfsNodes[key].stopDaemon(function (err) {
570-
if (err) {
571-
throw err
572-
}
573-
if (!nodeStopped) {
574-
nodeStopped = true
575-
apiClients[key].id(function (err, res) {
576-
assert.equal(err.code, 'ECONNREFUSED')
577-
cb()
578-
})
579-
}
580-
})
581-
}
582-
})
583-
}
584-
})
585-
*/
586548
})

0 commit comments

Comments
 (0)
This repository has been archived.