Skip to content

Commit

Permalink
wait for the search indexer more generally before cleaning up after t…
Browse files Browse the repository at this point in the history
…ests (#1826)
  • Loading branch information
labkey-chrisj authored Feb 14, 2024
1 parent fb95d50 commit ee5de5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/labkey/test/BaseWebDriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
import org.labkey.test.util.core.webdav.WebDavUploadHelper;
import org.labkey.test.util.ext4cmp.Ext4FieldRef;
import org.labkey.test.util.query.QueryUtils;
import org.labkey.test.util.search.SearchAdminAPIHelper;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.ElementClickInterceptedException;
Expand Down Expand Up @@ -1229,6 +1230,7 @@ private void waitForPendingRequests(int msWait)
TestLogger.log(pendingRequestCount.getValue() + " requests still pending after " + msWait + "ms");
if (pendingRequestCount.getValue() < 0)
TestLogger.log("Unable to fetch pending request count" + msWait + "ms");
SearchAdminAPIHelper.waitForIndexerBackground();
}

private int getPendingRequestCount(Connection connection)
Expand Down

0 comments on commit ee5de5c

Please sign in to comment.