Skip to content

Commit 7aea256

Browse files
committed
asserting number of events
1 parent 9a9c9e2 commit 7aea256

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/dev.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
deploy:
99
# this prevents concurrent builds since we are deploying to the same environment
1010
concurrency: dev-environment
11+
timeout-minutes: 20
1112

1213
runs-on: ubuntu-24.04
1314

tests/end-to-end/steps/e2e_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def temporary_queue_subscribed_to_event_bus(event_bus_name: str, event_pattern:
113113

114114
# not sure why, but even when marked as "ENABLED", we sometimes miss the first events
115115
# => wait a bit more, which likely makes the test flaky and unnecessarily slow :(
116-
time.sleep(10)
116+
time.sleep(20)
117117

118118
yield tmp_queue
119119

tests/end-to-end/steps/test_orders_scenarios.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def expect_order_event_in_event_bus_probe(restaurant_name: str, event_bus_probe_
7676
)
7777
print(f"events received {events}")
7878

79+
assert len(events) == 2
80+
7981
# sort events by detail-type to make the test deterministic since EventBridge does not guarantee order
8082
events=sorted(events, key=lambda x: x["detail-type"])
8183

0 commit comments

Comments
 (0)