BAEL-7547: removing timeouts

This commit is contained in:
emanueltrandafir1993 2024-03-22 22:11:09 +01:00 committed by emanuel.trandafir
parent 23ff3bc2fc
commit fbd72d1a09
1 changed files with 0 additions and 2 deletions

View File

@ -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()