Skip to content
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

test(kmd): add tests for empty and null password handling #319

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

drichar
Copy link
Collaborator

@drichar drichar commented Nov 28, 2024

Description

This PR adds test coverage for the KmdWallet client's password handling functionality, specifically for the empty string and null password handling changes introduced in PR #318.

Details

  • Add test to verify empty string passwords are properly cached and reused
  • Add test to verify cancelled password prompts (null) fall back to empty string
  • Verify password prompt is only shown once when password is cached

Add test coverage for KmdWallet's `getPassword` method to verify:
- Empty string passwords are properly cached and reused
- Cancelled prompts (null) fall back to empty string
- Password prompt is only shown once when cached
@drichar drichar merged commit 55ce7ad into main Nov 28, 2024
1 check passed
@drichar drichar deleted the test/kmd-empty-string-password branch November 28, 2024 07:16
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