Use system time for content string

This commit is contained in:
Sara Aspery
2022-11-30 03:10:44 +00:00
parent def5cb6885
commit 9162f05b5e

View File

@@ -29,7 +29,6 @@ import org.alfresco.rest.search.RestRequestQueryModel;
import org.alfresco.rest.search.RestResultBucketsModel; import org.alfresco.rest.search.RestResultBucketsModel;
import org.alfresco.rest.search.SearchRequest; import org.alfresco.rest.search.SearchRequest;
import org.alfresco.rest.search.SearchResponse; import org.alfresco.rest.search.SearchResponse;
import org.alfresco.util.GUID;
import org.alfresco.utility.model.FileModel; import org.alfresco.utility.model.FileModel;
import org.alfresco.utility.model.FileType; import org.alfresco.utility.model.FileType;
import org.hamcrest.Matchers; import org.hamcrest.Matchers;
@@ -106,8 +105,8 @@ public class SearchCasesTest extends AbstractSearchServicesE2ETest
public void testSearchUpdateContent() public void testSearchUpdateContent()
{ {
FileModel updateableFile; FileModel updateableFile;
String originalText = GUID.generate(); String originalText = String.valueOf(System.currentTimeMillis());
String newText = GUID.generate(); String newText = String.valueOf(System.currentTimeMillis() + 300000);
// Create test file to be accessed only by this test method to avoid inconsistency when querying updates // Create test file to be accessed only by this test method to avoid inconsistency when querying updates
String filename = "File-" + originalText + ".txt"; String filename = "File-" + originalText + ".txt";