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
When using a function on plugin.ts that requires a .zip file added to the form data, the form data stream won't close after the form data is used, and the test will take a bit of time to finish.
We need to investigate how to fix this.
Note:
Does not happen on unit tests
Only happens when form data has the .zip file attached
Only happens with POST requests (because the GET requests don't have the .zip attached)
Potential solutions:
Different method for attaching the .zip file?
Different method for executing requests?
A way to close the stream after form data submission?
The text was updated successfully, but these errors were encountered:
After some more investigation, it looks like the ReadableStream created when attaching the .zip file isn't being cleaned up. To compound this, Mocha 4 no longer automatically kills processes after the tests have run, so this is why I was seeing things continue. This can be fixed (in the test runner) by adding a process.exit() to an after() outside of the description(). More info on this issue from Mocha here.
But I still think that ideally, we figure out how to make the ReadableStream end
When using a function on
plugin.ts
that requires a.zip
file added to the form data, the form data stream won't close after the form data is used, and the test will take a bit of time to finish.We need to investigate how to fix this.
Note:
.zip
file attached.zip
attached)Potential solutions:
.zip
file?The text was updated successfully, but these errors were encountered: