Skip to content

Commit

Permalink
Remove e2e for user task that is taking too long. We will add a gh is…
Browse files Browse the repository at this point in the history
…sue for it
  • Loading branch information
eduwercamacaro committed Feb 19, 2024
1 parent e2a94ef commit 4150021
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions server/src/test/java/e2e/UserTaskTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();

Expand Down Expand Up @@ -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 -> {
Expand Down

0 comments on commit 4150021

Please sign in to comment.