Skip to content

test: rework to avoid mocking totp.GenerateCode()#190

Merged
vmiklos merged 1 commit intomainfrom
private/vmiklos/main
Aug 4, 2025
Merged

test: rework to avoid mocking totp.GenerateCode()#190
vmiklos merged 1 commit intomainfrom
private/vmiklos/main

Conversation

@vmiklos
Copy link
Copy Markdown
Owner

@vmiklos vmiklos commented Aug 4, 2025

Instead, use Now() (which is mocked during testing) as a replacement for
time.Now() in readPasswords(), then no need to mock totp.GenerateCode().

Instead, use Now() (which is mocked during testing) as a replacement for
time.Now() in readPasswords(), then no need to mock totp.GenerateCode().
@vmiklos vmiklos enabled auto-merge (rebase) August 4, 2025 20:15
@vmiklos vmiklos merged commit 0c048e5 into main Aug 4, 2025
1 check passed
@vmiklos vmiklos deleted the private/vmiklos/main branch August 4, 2025 20: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