Skip to content

Commit

Permalink
Closes Taskana#2262 - Fixed Flaky Test in CreateTaskAccTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrdi committed Jun 15, 2023
1 parent 3082811 commit 0980cf4
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -332,21 +332,18 @@ void should_CreateTask_When_MultipleAttachmentsAreSpecified() throws Exception {
Instant earlierInstant = Instant.parse("2018-01-12T00:00:00Z");
Instant laterInstant = Instant.parse("2018-01-15T00:00:00Z");
Task task = createDefaultTask();

Attachment attachment =
TaskAttachmentBuilder.newAttachment()
.objectReference(defaultObjectReference)
.classificationSummary(defaultClassificationSummary)
.created(Instant.now())
.modified(Instant.now())
.received(laterInstant)
.channel("E-MAIL")
.build();
Attachment attachment2 =
TaskAttachmentBuilder.newAttachment()
.objectReference(defaultObjectReference)
.classificationSummary(defaultClassificationSummary)
.created(Instant.now())
.modified(Instant.now())
.received(earlierInstant)
.channel("E-MAIL")
.build();
Expand Down

0 comments on commit 0980cf4

Please sign in to comment.