Skip to content

test(core): let each step-up test permit release one sign-in page - #4619

Merged
datlechin merged 1 commit into
mainfrom
test/core-step-up-gate
Nov 27, 2026
Merged

datlechin merged 1 commit into
mainfrom
test/core-step-up-gate

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • The step-up tests' Authenticator dropped its gate permit right after acquire() (let _ = ...), so the permit went back to the semaphore.
  • In a_step_up_that_comes_back_after_an_earlier_sign_in_committed_is_revoked_not_adopted, the first add_permits(1) then released the sign-in page and the step-up page together. When the step-up committed first, it returned Ok(()) and the assert at line 552 failed.
  • The permit is now forgotten, so each add_permits(1) releases one page, in the order the pages opened.
  • Test-only. The account code is unchanged.

Test plan

@datlechin
datlechin merged commit fec5b18 into main Nov 27, 2026
15 of 34 checks passed
@datlechin
datlechin deleted the test/core-step-up-gate branch November 27, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant