You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
Which is very implementation specific. The error should rather be similar to Go-IPFS's HTTP Error:
"Error":"blockstore: block not found"
After reading ipfs/js-ipfs#1406 and ipfs/js-ipfs#1506 (comment) and seeing that there's already a file with errors using err-code, I think it would make sense to use those errors also in the implementations. We could then even have tests in this repo, testing for those errors.
The text was updated successfully, but these errors were encountered:
We recently added a basic test for gets with the recent error code additions, https://github.com/ipfs/interface-datastore/pull/22/files. Ideally we'd have more tests for the various error states, but one of the difficulties with that is the various implementations error in different ways. For example a put failure on datastore-level vs datastore-s3 are going to have different root causes.
Perhaps we could do something to the base test suite here to throw failures unless certain tests are overridden?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I had another look at the block API rm tests to improve the error handling of the test.
Currently the error from the datastore implementations just bubble up. So in case of a
block rm
I got:Which is very implementation specific. The error should rather be similar to Go-IPFS's HTTP Error:
After reading ipfs/js-ipfs#1406 and ipfs/js-ipfs#1506 (comment) and seeing that there's already a file with errors using
err-code
, I think it would make sense to use those errors also in the implementations. We could then even have tests in this repo, testing for those errors.The text was updated successfully, but these errors were encountered: