Skip to content

Commit

Permalink
addressing CR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
corva-alex-s committed Nov 30, 2023
1 parent 44d14ff commit e1a854a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/corva/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ def _merge_events(aws_event: Any, data_transformation_type: Type[RawBaseEvent])
Merge happens differently, depending on app type.
"""
if data_transformation_type == RawScheduledEvent:
# scheduled event
if not isinstance(aws_event[0], dict):
aws_event = list(itertools.chain(*aws_event))
is_depth = aws_event[0]["scheduler_type"] == SchedulerType.data_depth_milestone
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_stream_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def stream_app(event, api, cache):
event = []
timestamp = 1
# generate 3 events with 2 records each
for _ in range(1, 4):
for _ in range(3):
event.extend(
[
RawStreamTimeEvent(
Expand Down

0 comments on commit e1a854a

Please sign in to comment.