Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix SessionManagerTab-test (#9291)
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 committed Sep 16, 2022
1 parent 9d83fba commit db5716b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,11 @@ describe('<SessionManagerTab />', () => {
) as Element).getAttribute('aria-disabled')).toEqual("true");

await flushPromisesWithFakeTimers();
// modal rendering has some weird sleeps
await sleep(100);

// Modal rendering has some weird sleeps.
// Resetting ourselves twice in the main loop gives modal the chance to settle.
await sleep(0);
await sleep(0);

expect(mockClient.deleteMultipleDevices).toHaveBeenCalledWith(
[alicesMobileDevice.device_id], undefined,
Expand Down

0 comments on commit db5716b

Please sign in to comment.