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 was archived by the owner on Mar 10, 2020. It is now read-only.
test: added test for object.stat timeout option (#506)
The opts parameter wasn't correctly passed in when calling ipfs.object.stat. This is the test that makes sure opts is being correctly passed to through the send function to the IPFS daemon.
I've also removed the "base58" encoding that was being passed in for some tests as base58 isn't a valid option for encoding and would provide this error:
Uncaught AssertionError: expected [Error: invalid encoding: base58] to not exist
Co-Authored-By: Alan Shaw <[email protected]>
Copy file name to clipboardExpand all lines: SPEC/OBJECT.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@ A great source of [examples][] can be found in the tests for this API.
198
198
199
199
`options` is a optional argument of type object, that can contain the following properties:
200
200
201
-
-`enc`, the encoding of multihash (base58, base64, etc), if any.
201
+
-`timeout`, A timeout to pass to the IPFS daemon so the request expires after a certain amount of time without any response. NOTE: not yet supported in JS IPFS.
202
202
203
203
`callback` must follow `function (err, stats) {}` signature, where `err` is an error if the operation was not successful and `stats` is an Object with following format:
204
204
@@ -220,7 +220,7 @@ If no `callback` is passed, a [promise][] is returned.
0 commit comments