← 输入框|github.com|刷新
Skip to content

api: expect token revocation in user password tests - #10

Merged
bbedward merged 1 commit into
masterfrom
fix/user-test-revoke-tokens
Oct 17, 2026
Merged

bbedward merged 1 commit into
masterfrom
fix/user-test-revoke-tokens

Conversation

@bbedward

Copy link
Copy Markdown
Contributor

Go CI has failed on master since 2afb1d6. UpdatePassword now calls RevokeUserTokens, but the "Self With Correct Current Password" and "Other User As Admin" cases in user_test.go did not expect it, so the mock failed TestUserServiceSuite.

Adds the missing RevokeUserTokens expectations to both cases. No mock or interface changes: make interfaces regenerates them with no diff.

go test ./... in apps/api passes.

UpdatePassword revokes the user's tokens since 2afb1d6, but two success cases in user_test.go did not expect the call, so TestUserServiceSuite failed in CI.
@bbedward
bbedward merged commit ff0ec12 into master Oct 17, 2026
8 checks passed
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