This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
ipfsFactory - Tests that require more than one IPFS node #53
Closed
Description
Some API calls require more than one node to be active, otherwise they fail or timeout (also considered failure), for example: name, DHT and swarm tests.
Our current:
var test = require('interface-ipfs-core')
var common = {
setup: function (cb) {
cb(null, yourIPFSInstance)
},
teardown: function (cb) {
cb()
}
}
// use all of the test suits
test.all(common)
Needs to be upgraded to:
var test = require('interface-ipfs-core')
var common = {
setup: function (cb) {
cb(null, ipfsFactory)
},
teardown: function (cb) {
cb()
}
}
// use all of the test suits
test.all(common)
Where ipfsFactory
has a method to spawn a new node
ipfsFactory.spawnNode((err, node)
More, since we already learned from js-ipfs-api and js-ipfs that is useful to spawn nodes with custom configs (e.g: mdns off; no boostrap nodes, etc). What we really need is
ipfsFactory.spawnNode(config, (err, node)
Metadata
Metadata
Assignees
Labels
No labels