From fbd72d1a0967716ccf79d68ea05d0512b7d684bd Mon Sep 17 00:00:00 2001 From: emanueltrandafir1993 Date: Fri, 22 Mar 2024 22:11:09 +0100 Subject: [PATCH] BAEL-7547: removing timeouts --- .../application/events/SpringModulithScenarioApiUnitTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-boot-modules/spring-boot-libraries-3/src/test/java/com/baeldung/springmodulith/application/events/SpringModulithScenarioApiUnitTest.java b/spring-boot-modules/spring-boot-libraries-3/src/test/java/com/baeldung/springmodulith/application/events/SpringModulithScenarioApiUnitTest.java index 8d262a24d0..f36a0c30e6 100644 --- a/spring-boot-modules/spring-boot-libraries-3/src/test/java/com/baeldung/springmodulith/application/events/SpringModulithScenarioApiUnitTest.java +++ b/spring-boot-modules/spring-boot-libraries-3/src/test/java/com/baeldung/springmodulith/application/events/SpringModulithScenarioApiUnitTest.java @@ -27,7 +27,6 @@ class SpringModulithScenarioApiUnitTest { @Test void whenPlacingOrder_thenPublishOrderCompletedEvent(Scenario scenario) { scenario.stimulate(() -> orderService.placeOrder("customer-1", "product-1", "product-2")) - .andWaitAtMost(ofMillis(500)) .andWaitForEventOfType(OrderCompletedEvent.class) .toArriveAndVerify(evt -> assertThat(evt) .hasFieldOrPropertyWithValue("customerId", "customer-1") @@ -38,7 +37,6 @@ class SpringModulithScenarioApiUnitTest { @Test void whenReceivingPublishOrderCompletedEvent_thenRewardCustomerWithLoyaltyPoints(Scenario scenario) { scenario.publish(new OrderCompletedEvent("order-1", "customer-1", Instant.now())) - .andWaitAtMost(ofMillis(500)) .andWaitForStateChange(() -> loyalCustomers.find("customer-1")) .andVerify(it -> assertThat(it) .isPresent().get()