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

wait for the search indexer more generally before cleaning up after tests #1826

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

labkey-chrisj
Copy link
Contributor

Rationale

This is a follow-up to discussion in https://github.com/LabKey/biologics/pull/2711.
To recap, it was suggested that a wait for the indexer before cleaning up after tests might be a reasonable way to more broadly prevent tests from generating failures if the search indexer is indexing something (as in this case, a sampleType) while test-cleanup is deleting it.

This adds a call to SearchAdminAPIHelper.waitForIndexerBackground() in BaseWebDriverTest.waitForPendingRequests() with the intention of avoiding race-condition failures where the container delete gets there before the indexer is finished

Related Pull Requests

https://github.com/LabKey/biologics/pull/2711

Changes

  • wait for the indexer after the rest of waitForPendingRequests()

@labkey-chrisj labkey-chrisj self-assigned this Feb 14, 2024
@labkey-chrisj labkey-chrisj merged commit ee5de5c into develop Feb 14, 2024
3 of 4 checks passed
@labkey-chrisj labkey-chrisj deleted the fb_waitForIndexerBeforeCleanup branch February 14, 2024 18:39
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