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

get_credential race for latest password #700

Open
jaraco opened this issue Oct 26, 2024 · 0 comments
Open

get_credential race for latest password #700

jaraco opened this issue Oct 26, 2024 · 0 comments

Comments

@jaraco
Copy link
Owner

jaraco commented Oct 26, 2024

Considered adding this additional assertion too (see previous commit) but it was failing intermittently on linux.

Sometimes keyring.get_credential(service, None).password would equate to password_2 and sometimes to password_1.

Sticking a time.sleep(1) between the 2 set_password calls above helped it reliably pass so perhaps there's some async/timing thing happening with dbus (can possibly look into that deeper but a bit out of my depths w/ dbus)

        assert keyring.get_credential(service, "user2").password == password_2
         # Most recent entered
        assert keyring.get_credential(service, None).password == password_2

Originally posted by @JamieBeverley in #699 (comment)

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

No branches or pull requests

1 participant