|
14 | 14 |
|
15 | 15 | import static org.assertj.core.api.Assertions.assertThat; |
16 | 16 |
|
| 17 | +import java.time.Duration; |
17 | 18 | import java.time.Instant; |
18 | 19 | import java.util.Collection; |
19 | 20 | import java.util.List; |
20 | 21 | import java.util.Map; |
21 | 22 | import java.util.Set; |
22 | 23 |
|
| 24 | +import org.apache.pekko.actor.ActorRef; |
| 25 | +import org.apache.pekko.actor.Props; |
| 26 | +import org.apache.pekko.testkit.TestProbe; |
| 27 | +import org.apache.pekko.testkit.javadsl.TestKit; |
23 | 28 | import org.eclipse.ditto.base.model.acks.AcknowledgementLabel; |
24 | 29 | import org.eclipse.ditto.base.model.acks.AcknowledgementRequest; |
25 | 30 | import org.eclipse.ditto.base.model.auth.AuthorizationContext; |
|
58 | 63 | import org.junit.Test; |
59 | 64 | import org.junit.runners.MethodSorters; |
60 | 65 |
|
61 | | -import org.apache.pekko.actor.ActorRef; |
62 | | -import org.apache.pekko.actor.Props; |
63 | | -import org.apache.pekko.testkit.TestProbe; |
64 | | -import org.apache.pekko.testkit.javadsl.TestKit; |
65 | | - |
66 | 66 | /** |
67 | 67 | * Tests in addition to {@link MessageMappingProcessorActorTest} |
68 | 68 | * for {@link OutboundMappingProcessorActor} only. |
@@ -144,7 +144,7 @@ public void eventsWithFailedEnrichmentIssueFailedAcks() { |
144 | 144 | underTest.tell(outboundSignal, getRef()); |
145 | 145 | proxyActorProbe.expectMsgClass(RetrieveThing.class); |
146 | 146 |
|
147 | | - final Acknowledgements acks = expectMsgClass(Acknowledgements.class); |
| 147 | + final Acknowledgements acks = expectMsgClass(Duration.ofSeconds(5), Acknowledgements.class); |
148 | 148 | final List<String> fackLabels = acks.getFailedAcknowledgements() |
149 | 149 | .stream() |
150 | 150 | .map(ack -> ack.getLabel().toString()) |
|
0 commit comments