Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Mar 22, 2024
1 parent ffefe74 commit 35aae55
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 35aae55

Please sign in to comment.