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

fix: users for alias not balanced across threads #90

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

ewingjm
Copy link
Member

@ewingjm ewingjm commented Jun 29, 2021

Purpose

If tests are running with process or AppDomain isolation then all of the test threads will cycle individually through the users in the same order. This can lead to API limits be still being reached despite configuring many different users for an alias - this is due to the fact that tests are only load balanced within a thread rather than across threads.

Approach

Shuffling the enumerators is an approximation that saves having to find a way to synchronise between AppDomains or processes.

TODOs

  • Automated test coverage for new code
  • Documentation updated (if required)
  • Build and tests successful

This is required due to the fact that, if tests are running with process or AppDomain isolation, all of the tests will cycle through the users in the same order.

Shuffling the enumerators is an approximation that saves having to find a way to synchronise between AppDomains or processes.
@ewingjm ewingjm added the bug Something isn't working label Jun 29, 2021
@ewingjm ewingjm changed the title fix: users for alias not balanced across scenarios fix: users for alias not balanced across threads Jun 29, 2021
@ewingjm ewingjm merged commit 213ab54 into master Jun 29, 2021
@ewingjm ewingjm deleted the bugfix/randomise-initial-current-user-index branch June 29, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant