Skip to content

Commit

Permalink
Increase await() timeout to 30 sec for AsyncRabbitTemplateTests
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Oct 22, 2024
1 parent f150bf5 commit c321e94
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import static org.awaitility.Awaitility.await;
import static org.mockito.Mockito.mock;

import java.time.Duration;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.CancellationException;
Expand All @@ -35,6 +36,8 @@
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.BiConsumer;

import org.awaitility.Awaitility;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import org.springframework.amqp.core.Address;
Expand Down Expand Up @@ -91,6 +94,11 @@ public class AsyncRabbitTemplateTests {

private final Message fooMessage = new SimpleMessageConverter().toMessage("foo", new MessageProperties());

@BeforeAll
static void setup() {
Awaitility.setDefaultTimeout(Duration.ofSeconds(30));
}

@Test
public void testConvert1Arg() throws Exception {
final AtomicBoolean mppCalled = new AtomicBoolean();
Expand Down

0 comments on commit c321e94

Please sign in to comment.