mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Search-1439: Added assert for indexing so that it fails with the message Indexing in progress
This commit is contained in:
+2
-2
@@ -66,7 +66,7 @@ public class CascadingTrackerIntegrationTest extends AbstractSearchServiceE2E
|
||||
|
||||
// Find nodes where Path with new folder name matches
|
||||
String parentQueryAfterRename = "NPATH:\"4/Company Home/Sites/" + testSite.getTitle() + "/documentLibrary/" + parentNewName + "\"";
|
||||
waitForContent(parentQueryAfterRename, childFile.getName(), true);
|
||||
Assert.assertEquals(waitForContent(parentQueryAfterRename, childFile.getName(), true), true, "Indexing is still in Progress");
|
||||
|
||||
// Query using new parent name
|
||||
int descendantCountOfNewName = query(parentQueryAfterRename).getPagination().getCount();
|
||||
@@ -110,7 +110,7 @@ public class CascadingTrackerIntegrationTest extends AbstractSearchServiceE2E
|
||||
|
||||
// Find nodes where Path with new folder name matches
|
||||
String parentQueryAfterRename = "NPATH:\"4/Company Home/Sites/" + testSite.getTitle() + "/documentLibrary/" + grandParentNewName + "\"";
|
||||
waitForContent(parentQueryAfterRename, grandChildFile.getName(), true);
|
||||
Assert.assertEquals(waitForContent(parentQueryAfterRename, grandChildFile.getName(), true), true, "Indexing is still in Progress");
|
||||
|
||||
// Query using new parent name
|
||||
int descendantCountOfNewName = query(parentQueryAfterRename).getPagination().getCount();
|
||||
|
||||
Reference in New Issue
Block a user