X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/73d6304270e77b662bff5206a8a0667c02361ec7..06b6ba8fd1ee85ab6758261e4f782306cebeb0c1:/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx

diff --git a/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx b/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx
index 3be400f7c5..28084ed1c1 100644
--- a/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx
+++ b/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx
@@ -15,14 +15,11 @@ describe('<AutoLogoutComponent />', () => {
     const lastWarningDuration = 60;
     const eventListeners = {};
 
-    beforeAll(() => {
+    beforeEach(() => {
+        jest.useFakeTimers();
         window.addEventListener = jest.fn((event, cb) => {
             eventListeners[event] = cb;
         });
-    });
-
-    beforeEach(() => {
-        jest.useFakeTimers();
         props = {
             sessionIdleTimeout: sessionIdleTimeout,
             lastWarningDuration: lastWarningDuration,
