Mokhtar Naamani 47c13bd35e storage-node: caching content id resolution | před 3 roky | |
---|---|---|
.. | ||
test | před 3 roky | |
.eslintrc.js | před 4 roky | |
README.md | před 4 roky | |
filter.js | před 3 roky | |
index.js | před 4 roky | |
package.json | před 3 roky | |
storage.js | před 3 roky |
This package contains an abstraction over the storage backend of colossus.
In the current version, the storage is backed by IPFS. In order to run tests, you have to also run an IPFS node.
Note also that tests do not finish. This is due to a design flaw in the IPFS HTTP Client npm package. In that package, requests can seemingly never time out - this client library patches over this by using bluebird's cancellable Promises, so that at least this package can provide a timeout. In the client library, however, that still leaves some dangling requests, meaning node cannot exit cleanly.
For this reason, we're passing the --exit
flag to mocha
in the test
script - run yarn run test
and you should have a well behaving test suite.
Run mocha
directly, without this flag, and you may be disappointed.