-
Notifications
You must be signed in to change notification settings - Fork 1.2k
files.addStream started failing #932
Comments
Isolated this issue to the readable stream that is created on the This test is being used in js-ipfs here. This only happens in the browser. Any clues on how to solve this? @diasdavid @dignifiedquire |
One thing that seams to solve this is in the tests is to use |
@pgte I've removed
See my patch: https://github.com/ipfs/interface-ipfs-core |
Interestingly,
|
@diasdavid I think it derives from the same issue. I've managed to build down this one problem to adding an assertion after this line on https://github.com/ipfs/interface-ipfs-core/blob/master/src/files.js#L60 expect(rs instanceof stream.Stream).to.be.true() This one test passes when I run Again, I'm not too familiar of the inner workings of webpack and how it's being used here. Any hints? |
...which is understandable if you look at https://github.com/substack/stream-browserify/blob/master/index.js#L27-L32 . What I'm failing to understand is if and how |
fixed with #937 (comment). Thanks for all the help with debugging this, @pgte :) tl;dr; we should never use |
Although no changes have been made to files, unixfs or unixfs-engine code, there is one test that started failing intermittently:
I can replicate it sometimes locally and sometimes in CI.
@pgte mind taking a look?
The text was updated successfully, but these errors were encountered: