Skip to content

Commit

Permalink
fix(xmppConnection) Fix unit tests.
Browse files Browse the repository at this point in the history
The number of retries is limited to 3 now.
  • Loading branch information
jallamsetty1 committed Sep 25, 2024
1 parent 4be1919 commit 71f572c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/xmpp/ResumeTask.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ describe('ResumeTask', () => {
resumeTask.schedule();

expect(between4500msAnd27seconds(resumeTask.retryDelay)).toBeTruthy();

// It should remain within the last range after the 3rd retry
resumeTask.schedule();
expect(between4500msAnd27seconds(resumeTask.retryDelay)).toBeTruthy();
});
it('should not increase when internet goes offline/online', () => {
resumeTask.schedule();
Expand Down

0 comments on commit 71f572c

Please sign in to comment.