-
Notifications
You must be signed in to change notification settings - Fork 300
Conversation
This PR updates the tests with new supported inputs for add. refs ipfs-inactive/js-ipfs-http-client#1087 License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
* fix: supported add inputs This PR updates the tests with new supported inputs for add. refs ipfs-inactive/js-ipfs-http-client#1087 License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai> * fix: test for hidden file - only 10 items License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai> * fix: test assertion License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai> * chore: appease linter License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai> * fix: test License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
addFromStream: require('../files-regular/add')(send), | ||
_addAsyncIterator: require('../files-regular/add-async-iterator')(send), | ||
add: (input, options, callback) => { | ||
if (typeof options === 'function') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these functions need to guard their inputs like this? I think the methods they chain to also guard. Maybe they could just be callbackify
'd at this level?
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
This will reduce as we switch more APIs to using fetch. License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
19fab28
to
c9bf01e
Compare
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
I think this might have broken IPFS on electron - it seems it doesn't support using This is reflected in the logs for the electron-renderer tests.
Note how the outgoing content type is |
that's an old issue, how can i repro this? i wanna try to upgrade electron in aegir and test it |
Run the Electron tests with
fails when it tries to add a file due to the request mangling above. |
To summary the problem:
Workaround right now is to use the built browser bundle from a CDN or copied directly into the project. |
Also, this could have been caught if the electron-renderer CI tests weren't allowed to fail. See #1031 |
supersedes #1063
Depends on: