From 71f572c6b7b1fab371ea13be1281ba23dc674b19 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Wed, 25 Sep 2024 11:12:45 -0400 Subject: [PATCH] fix(xmppConnection) Fix unit tests. The number of retries is limited to 3 now. --- modules/xmpp/ResumeTask.spec.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/xmpp/ResumeTask.spec.js b/modules/xmpp/ResumeTask.spec.js index a804d3dd41..0f4b5bcc6c 100644 --- a/modules/xmpp/ResumeTask.spec.js +++ b/modules/xmpp/ResumeTask.spec.js @@ -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();