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

Track down and avoid the windows test failures #164

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

brotskydotcom
Copy link
Collaborator

I have altered the Windows tests so that they don't set a credential on one thread and then immediately access that credential from another thread. With that change, the Windows tests seem to work reliably.

I have updated the docs to warn clients that this pattern of access is known to fail on Windows, and added a feature that can be used to run those tests on Windows in case Microsoft fixes these issues in future.

This "fixes #163" in a manner of speaking.

Change `test_simultaneous_create_set_move` so that it does the set in the thread, so it's really `test_simultaneous_create_move_set`
Apparently the windows credential manager doesn't consistently work if you set and then read (or delete) the same entry from different threads.  So conditionalize the tests to avoid this on Windows, and add a documentation about this issue.
@brotskydotcom brotskydotcom merged commit de38b48 into hwchen:master Jan 26, 2024
3 checks passed
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.

Windows test instability - hard to reproduce
1 participant