Add a 2-second timeout for connect()

This commit is contained in:
Elliot Lee
2019-10-03 00:02:55 -07:00
parent 14e6bf5ef9
commit d075ec6716
3 changed files with 31 additions and 14 deletions

View File

@@ -4771,4 +4771,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.
});
});