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

don't call searchIndexer unless search module is present #1829

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

labkey-chrisj
Copy link
Contributor

Rationale

Recently in #1826 I added a call to SearchAdminAPIHelper.waitForIndexerBackground() to BaseWebDriverTest.WaitForPendingRequests (which is called before cleaning up tests), with the intention of preventing intermittent failures that can arise when the indexer is indexing something when it is being deleted.

Unfortunately, this caused failures in tests that don't have the Search module (🤦doh)
This change checks beforehand to see if _containerHelper.getAllModules.contains("Search") and only asks the indexer to wait if the Search module is present

Related Pull Requests

#1826

Changes

Only ask search indexer to wait if search module is there

@labkey-chrisj labkey-chrisj merged commit c5d7d40 into develop Feb 16, 2024
4 checks passed
@labkey-chrisj labkey-chrisj deleted the fb_checkForSearchModule branch February 16, 2024 00:08
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