Skip to content

Add tests for non-ideal case #332

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

Merged
merged 2 commits into from
May 2, 2024

Conversation

AmitPhulera
Copy link
Collaborator

@AmitPhulera AmitPhulera commented May 2, 2024

This is basically copy of commcare-bed-track.py which updates the searches in commcare-bed-track.py to follow following behaviour.

A non-faceted search 2 times per hour (instead of once per 5 seconds) and a faceted search 4 times per hour per user, ideally in a pattern of
Non-facteted search
Faceted search
Wait 20s
Faceted search
Wait ~30m

I have tested for timings locally, it works fine.

@AmitPhulera AmitPhulera requested a review from snopoke May 2, 2024 08:02

class LoginCommCareHQWithUniqueUsers(BaseLoginCommCareUser):
tasks = [WorkloadNonIdealModelSteps]
wait_time = constant_pacing(5)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can drop this since we're defining wait times in the test class

@AmitPhulera AmitPhulera merged commit 438f72d into master May 2, 2024
@snopoke snopoke deleted the ap/add-test-for-non-ideal-user-case branch May 2, 2024 14:04
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.

2 participants