Skip to content

Commit a690b4a

Browse files
authored
fix: test (#971)
1 parent ffefe74 commit a690b4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/io/supertokens/test/accountlinking/api/ActiveUserTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ public void testActiveUserIsRemovedAfterLinkingAccounts() throws Exception {
156156
WebserverAPI.getLatestCDIVersion().get(), "");
157157
}
158158

159-
// we don't remove the active user for the recipe user, so it should still be 2
159+
// we remove the active user for the recipe user, so it should be 1
160160
userCount = ActiveUsers.countUsersActiveSince(process.getProcess(), System.currentTimeMillis() - 10000);
161-
assertEquals(2, userCount);
161+
assertEquals(1, userCount);
162162

163163
// Sign in to the accounts once again
164164
{
@@ -188,7 +188,7 @@ public void testActiveUserIsRemovedAfterLinkingAccounts() throws Exception {
188188

189189
// there should still be only one active user
190190
userCount = ActiveUsers.countUsersActiveSince(process.getProcess(), System.currentTimeMillis() - 10000);
191-
assertEquals(2, userCount);
191+
assertEquals(1, userCount);
192192

193193
process.kill();
194194
assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STOPPED));

0 commit comments

Comments
 (0)