From 4150021a22e1a83acc1cb7438d63d5563e4805f0 Mon Sep 17 00:00:00 2001 From: Eduwer Camacaro Date: Mon, 19 Feb 2024 09:26:53 -0500 Subject: [PATCH] Remove e2e for user task that is taking too long. We will add a gh issue for it --- server/src/test/java/e2e/UserTaskTest.java | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/server/src/test/java/e2e/UserTaskTest.java b/server/src/test/java/e2e/UserTaskTest.java index 17e39563d..68726e4db 100644 --- a/server/src/test/java/e2e/UserTaskTest.java +++ b/server/src/test/java/e2e/UserTaskTest.java @@ -18,9 +18,7 @@ import io.littlehorse.test.LHUserTaskForm; import io.littlehorse.test.LHWorkflow; import io.littlehorse.test.SearchResultCaptor; -import io.littlehorse.test.WfRunVerifier; import io.littlehorse.test.WorkflowVerifier; -import io.littlehorse.test.internal.MismatchedConditionException; import io.littlehorse.test.internal.TestExecutionContext; import java.time.Duration; import java.util.Map; @@ -39,9 +37,6 @@ public class UserTaskTest { @LHWorkflow("deadline-reassignment-workflow-user-without-group") private Workflow deadlineReassignmentUserWithoutGroupWorkflow; - @LHWorkflow("deadline-reassignment-with-epoch") - private Workflow deadlineReassignmentWithEpoch; - @LHUserTaskForm(USER_TASK_DEF_NAME) private MyForm myForm = new MyForm(); @@ -77,22 +72,6 @@ void shouldTransferOwnershipFromUserToSpecificGroupOnDeadline() { Assertions.assertThat(wfRunIdList.getResultsList()).isNotEmpty(); } - @Test - void shouldTestDeadlineReassignmentWithEpoch() { - WfRunVerifier wfRunVerifier = workflowVerifier - .prepareRun(deadlineReassignmentWithEpoch) - .waitForStatus(RUNNING) - .waitForUserTaskRunStatus(1, 1, UserTaskRunStatus.ASSIGNED) - .waitForNodeRunStatus(2, 1, COMPLETED, Duration.ofSeconds(8)) - .thenAssignUserTask(1, 1, true, "anakin", null) - .waitForUserTaskRunStatus(1, 1, UserTaskRunStatus.UNASSIGNED, Duration.ofSeconds(20)); - Assertions.assertThatThrownBy(wfRunVerifier::start) - .isInstanceOf(MismatchedConditionException.class) - .extracting(throwable -> (MismatchedConditionException) throwable) - .matches(mismatchedException -> mismatchedException.getExpectedValue() == UserTaskRunStatus.UNASSIGNED - && mismatchedException.getEvaluatedValue() == UserTaskRunStatus.ASSIGNED); - } - @LHWorkflow("deadline-reassignment-workflow") public Workflow buildDeadlineReassignmentWorkflow() { return new WorkflowImpl("deadline-reassignment-workflow", entrypointThread -> {