File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
spring-rabbit/src/test/java/org/springframework/amqp/rabbit Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2222import static org .awaitility .Awaitility .await ;
2323import static org .mockito .Mockito .mock ;
2424
25+ import java .time .Duration ;
2526import java .util .Map ;
2627import java .util .UUID ;
2728import java .util .concurrent .CancellationException ;
3536import java .util .concurrent .atomic .AtomicReference ;
3637import java .util .function .BiConsumer ;
3738
39+ import org .awaitility .Awaitility ;
40+ import org .junit .jupiter .api .BeforeAll ;
3841import org .junit .jupiter .api .Test ;
3942
4043import org .springframework .amqp .core .Address ;
@@ -91,6 +94,11 @@ public class AsyncRabbitTemplateTests {
9194
9295 private final Message fooMessage = new SimpleMessageConverter ().toMessage ("foo" , new MessageProperties ());
9396
97+ @ BeforeAll
98+ static void setup () {
99+ Awaitility .setDefaultTimeout (Duration .ofSeconds (30 ));
100+ }
101+
94102 @ Test
95103 public void testConvert1Arg () throws Exception {
96104 final AtomicBoolean mppCalled = new AtomicBoolean ();
You can’t perform that action at this time.
0 commit comments