Skip to content

Commit

Permalink
Fixed randomly failing test case in TestSolrConfiguration.
Browse files Browse the repository at this point in the history
  • Loading branch information
dSeidel committed Apr 25, 2024
1 parent 6b956c4 commit dc9e891
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/org/opencms/search/solr/TestSolrConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ public void testReindexPublishedSiblings() throws Throwable {
OpenCms.getPublishManager().waitWhileRunning();

// modify and publish only the source
// but wait a second, since otherwise the formerly extracted content will be reindexed
// see CmsSeachIndex#getContentIfUnchanged(CmsResource) and the caching mechanisms from A_CmsVfsDocument.createDocument(...)
Thread.sleep(1000L);
CmsFile file = cms.readFile(resource);
file.setContents("OpenCms Enterprise Content Management System".getBytes());
cms.lockResource(file);
Expand Down

0 comments on commit dc9e891

Please sign in to comment.