-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out why file is not in mongo before an LS all within the skipper adapter tests #34
Comments
Create issue in skipper tests project instead |
THIS ISSUE MUST BE REOPENED. This bug exists and happens in real life, not just test cases. We have to process file uploads with a delay when using skipper-gridfs due to this bug, this does not happen with skipper-azure, so it is indeed a bug in this module. |
Not sure why the difference of behavior between running the tests locally vs in travis. Maybe slowness of my computer compared to travis as was suggested by it working with a delay? |
I double checked the workflow of .receive() function and compared to
So, I did some cleanup in it, leaving only the listeners for
Aditionally, now the code is compatible with Node 14 & 15, and all tests are passing even when using untouched PS1: Node 14 and 15 seems to be more memory-consuming than 6 & 8. When running tests on my laptop (8Gb RAM) it fails intermitently with ECONNRESET error during tests with 200 clients at same time. When testing on my desktop (16Gb) or in Travis CI, all tests run successfully 100% of the time. PS2: I updated PRs #44 and #45 with this code, you can test it. |
Looking at the failing test, the file has not been written to mongo before an
ls
is being performed.This seems to be because thereceiver__
'sfinish
has been called before the file has been fully uploaded to mongo.I believe the tests just don't treat the methods asynchronously. Possible should not have these tests rely on what is done in a previous test.
The text was updated successfully, but these errors were encountered: