Merge pull request #1044 from ripple/connection-timeout

Add a 2-second timeout for connect()
This commit is contained in:
FKSRipple
2019-10-23 18:19:39 -07:00
committed by GitHub
2 changed files with 18 additions and 4 deletions

View File

@@ -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.
});
});