[MNT-23379] Added sleep between document creation and update to prevent test failures (#1668)

This commit is contained in:
tiagosalvado10
2023-01-09 18:40:36 +00:00
committed by GitHub
parent e4e4ed214a
commit 4749166080

View File

@@ -6374,6 +6374,9 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest
String content1_Id = createTextFile(site1DocLibNodeId, content, "The quick brown fox jumps over the lazy dog.").getId();
NodeRef content1_Ref = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, content1_Id);
// TODO find a better solution to wait for the asynchronous metadata-extract/transform operation. E.g. awaitility
Thread.sleep(3000);
// Change to User2 context
setRequestContext(user2);