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

Fixup longpass auth tests #1269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cosgroveb
Copy link
Contributor

@cosgroveb cosgroveb commented Feb 9, 2025

C-strings are NULL terminated and so MAX_PASSWORD_LENGTH =
MAX_PASSWORD - 1.

Additionally, the regex matcher for pulling out MAX_PASSWORD was wrong
and only got "2" when it should have been "2048".

This closes #1268

C-strings are `NULL` terminated and so `MAX_PASSWORD_LENGTH` =
`MAX_PASSWORD - 1`.

Additionally, the regex matcher for pulling out `MAX_PASSWORD` was wrong
and only got "2" when it should have been "2048".
assert match is not None
max_password_length = int(match.group(1))
assert max_password_length >= 996
Copy link
Contributor Author

@cosgroveb cosgroveb Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about this bit but an assertion that it's > 2 is needed 🤣

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.

Fixing broken test helper function exposes test failures around MAX_PASSWORD
1 participant