Mokhtar Naamani 47c13bd35e storage-node: caching content id resolution il y a 3 ans
..
test c927f3771b storage-node: temp write stream wait for 'end' event not 'finish' il y a 3 ans
.eslintrc.js 34358429f8 move storage node into storage-node/ folder il y a 4 ans
README.md 6a0c27af2e storage-node: update READMEs il y a 4 ans
filter.js 250ea4849e storage-node allow 10GB uploads il y a 3 ans
index.js 70901582ec storage-node: Fix files format. il y a 4 ans
package.json 6d9153d042 pioneer and nodejs fixes il y a 3 ans
storage.js 47c13bd35e storage-node: caching content id resolution il y a 3 ans

README.md

Summary

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.

Testing

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.