Mokhtar Naamani 6a0c27af2e storage-node: update READMEs hace 4 años
..
test f64066776e storage-node: fix test, ensure write stream is flushed before committing hace 4 años
.eslintrc.js 34358429f8 move storage node into storage-node/ folder hace 4 años
README.md 6a0c27af2e storage-node: update READMEs hace 4 años
filter.js 34358429f8 move storage node into storage-node/ folder hace 4 años
index.js 34358429f8 move storage node into storage-node/ folder hace 4 años
package.json 544f084234 storage-node: mark workspace packages private hace 4 años
storage.js f29c9f5e39 storage-node: some notes on improving sync hace 4 años

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.