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
Timeout option was being ignored due to the missing AbortSignal inside options object.
Expected Behavior
Timeout option shouldn't be ignored and thus timeout for delayed requests should be canceled correctly by the demand of the user.
Steps to Reproduce
it('should timeout by delayed response', async function () {
var provider = new HttpProvider('/fetchMock', { timeout: 500 });
var web3 = new Web3(provider);
fetchMock.mock('/fetchMock', 'Testing non-json format response', { delay: 1000 });
await expect(web3.eth.getChainId()).to.be.rejectedWith(Error, 'CONNECTION TIMEOUT: timeout of 500 ms achived');
fetchMock.restore();
});
Is there an existing issue for this?
Current Behavior
Timeout option was being ignored due to the missing AbortSignal inside options object.
Expected Behavior
Timeout option shouldn't be ignored and thus timeout for delayed requests should be canceled correctly by the demand of the user.
Steps to Reproduce
Web3.js Version
1.x
Environment
No response
Anything Else?
Fixed by the latest commit of PR #5228
The text was updated successfully, but these errors were encountered: