Skip to content

Clearing context so later tests can pass #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

OrDTesters
Copy link

@OrDTesters OrDTesters commented Mar 19, 2020

Currently, tests in SpringDigestPasswordValidationCallbackHandlerTest fail when they run right after SpringSecurityPasswordValidationCallbackHandlerTest.testHandleUsernameTokenPrincipal. The proposed pull request inserts a call to SecurityContextHolder.clearContext() at the end of testHandleUsernameTokenPrincipal (similar to how the call is in the tearDown() method in SpringDigestPasswordValidationCallbackHandlerTest), so the later tests can pass.

@pivotal-issuemaster This is an Obvious Fix

Please let me know if you want to discuss the changes more.

@pivotal-issuemaster
Copy link

@OrDTesters Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@OrDTesters This Pull Request contains an obvious fix. Signing the Contributor License Agreement is not necessary.

@gregturn
Copy link
Contributor

gregturn commented Dec 1, 2020

Thank you for finding this @OrDTesters.

However, it was also discovered by another member of the community and recently patched via eb6da13.

@gregturn gregturn closed this Dec 1, 2020
@gregturn gregturn self-assigned this Dec 1, 2020
@gregturn gregturn added in: test status: duplicate A duplicate of another issue labels Dec 1, 2020
@gregturn gregturn added this to the 3.1.0-M1 milestone Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants