mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Merge pull request #1044 from ripple/connection-timeout
Add a 2-second timeout for connect()
This commit is contained in:
@@ -4772,4 +4772,8 @@ describe('RippleAPI - offline', function () {
|
||||
assert.throws(() => new RippleAPI({ server: 'wss//s:1' }));
|
||||
});
|
||||
|
||||
xit('RippleAPI connect() times out after 2 seconds', function () {
|
||||
// TODO: Use a timer mock like https://jestjs.io/docs/en/timer-mocks
|
||||
// to test that connect() times out after 2 seconds.
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user