mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Fix/4737/timeout error message for http (#4738)
* Fixing timeoutErrorMessage in http calls When timeoutErrorMessage was set this did not change anything in the error message, with this change the error message will be the configured message * Testing timeoutErrorMessage in http calls When timeoutErrorMessage was set this did not change anything in the error message, with this change the error message will be the configured message Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -146,7 +146,7 @@ describe('supports http with nodejs', function () {
|
||||
assert.strictEqual(success, false, 'request should not succeed');
|
||||
assert.strictEqual(failure, true, 'request should fail');
|
||||
assert.strictEqual(error.code, 'ECONNABORTED');
|
||||
assert.strictEqual(error.message, 'timeout of 250ms exceeded');
|
||||
assert.strictEqual(error.message, 'oops, timeout');
|
||||
done();
|
||||
}, 300);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user