Skip to content

Commit

Permalink
Closes Taskana#2533 - Fixed flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
MM1277 committed Apr 5, 2024
1 parent 566a137 commit 016d103
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import pro.taskana.task.api.TaskService;
import pro.taskana.task.api.exceptions.TaskNotFoundException;
import pro.taskana.task.api.models.Task;
import pro.taskana.task.internal.models.TaskImpl;
import pro.taskana.workbasket.api.exceptions.NotAuthorizedOnWorkbasketException;

@ExtendWith(JaasExtension.class)
Expand Down Expand Up @@ -160,7 +161,8 @@ void should_VerifyThatCreateAndPlannedAreClose() throws Exception {
createObjectReference("COMPANY_A", "SYSTEM_A", "INSTANCE_A", "VNR", "1234567"));
newTask.setOwner("user-1-1");
newTask.setPlanned(planned);
Task createdTask = taskService.createTask(newTask);
TaskImpl createdTask = (TaskImpl) taskService.createTask(newTask);
createdTask.setCreated(now);

assertThat(createdTask).isNotNull();
assertThat(createdTask.getPlanned()).isEqualTo(planned);
Expand Down

0 comments on commit 016d103

Please sign in to comment.