From 35aae55e386872732c88d2671268062e0f4017dc Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Fri, 22 Mar 2024 12:18:23 +0530 Subject: [PATCH] fix: test --- .../supertokens/test/accountlinking/api/ActiveUserTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/io/supertokens/test/accountlinking/api/ActiveUserTest.java b/src/test/java/io/supertokens/test/accountlinking/api/ActiveUserTest.java index 10c652c3c..2bc7eb759 100644 --- a/src/test/java/io/supertokens/test/accountlinking/api/ActiveUserTest.java +++ b/src/test/java/io/supertokens/test/accountlinking/api/ActiveUserTest.java @@ -156,9 +156,9 @@ public void testActiveUserIsRemovedAfterLinkingAccounts() throws Exception { WebserverAPI.getLatestCDIVersion().get(), ""); } - // we don't remove the active user for the recipe user, so it should still be 2 + // we remove the active user for the recipe user, so it should be 1 userCount = ActiveUsers.countUsersActiveSince(process.getProcess(), System.currentTimeMillis() - 10000); - assertEquals(2, userCount); + assertEquals(1, userCount); // Sign in to the accounts once again { @@ -188,7 +188,7 @@ public void testActiveUserIsRemovedAfterLinkingAccounts() throws Exception { // there should still be only one active user userCount = ActiveUsers.countUsersActiveSince(process.getProcess(), System.currentTimeMillis() - 10000); - assertEquals(2, userCount); + assertEquals(1, userCount); process.kill(); assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STOPPED));