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
Alirezaja1384
changed the title
axios does'nt trigger timeout when respose takes too long
Axios doesn't trigger timeout when respose takes too long
Apr 1, 2022
Alirezaja1384
changed the title
Axios doesn't trigger timeout when respose takes too long
Axios doesn't trigger timeout when handler's delay is too long
Apr 1, 2022
We're currently having issues with intercepting Axios requests properly. This may be related to #1169 where we're tracking the original issue. We should fix the said issue first and then see if it doesn't address this one as well.
Prerequisites
Environment check
msw
versionNode.js version
v17.8.0
Reproduction repository
https://codesandbox.io/s/eager-paper-dkkkzs
Reproduction steps
yarn test
There are 3 tests in
src/__tests__/request.js
.Current behavior
First one (MSW's rest handler) doesn't trigger timeout, so the promise resolves instead of being rejected and test fails. But other ones pass.
Expected behavior
It should reject the promise with
ECONNABORTED
code.The text was updated successfully, but these errors were encountered: