ACS-1041 Fixed intermittent test failure - events2 (#208)

This commit is contained in:
Adina Ababei
2020-12-16 15:23:55 +02:00
committed by GitHub
parent bf73af71a3
commit 3891306459

View File

@@ -39,9 +39,7 @@ import org.alfresco.service.cmr.repository.ChildAssociationRef;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.GUID;
import org.alfresco.util.testing.category.IntermittentlyFailingTests;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
* @author Adina Ababei
@@ -348,7 +346,6 @@ public class ChildAssociationRepoEventIT extends AbstractContextAwareRepoEvent
assertEquals("cm:contains", getChildAssocResource(childAssocEvents.get(2)).getAssocType());
}
@Category(IntermittentlyFailingTests.class) // ACS-959
@Test
public void testOneParentMultipleChildrenSameTransaction()
{
@@ -389,6 +386,7 @@ public class ChildAssociationRepoEventIT extends AbstractContextAwareRepoEvent
return null;
});
checkNumOfEvents(7);
// 3 assoc.child.Created events should be created
List<RepoEvent<EventData<ChildAssociationResource>>> childAssocEvents = getFilteredEvents(EventType.CHILD_ASSOC_CREATED);
assertEquals("Wrong association events number",3, childAssocEvents.size());