Skip to content

get_credential race for latest password #700

@jaraco

Description

@jaraco

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions