Skip to content

Commit

Permalink
fix: Add additional type checks in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Nov 21, 2024
1 parent 9ef193f commit 975ff4f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ async def test_insert_into_s3_activity_heartbeats(
inserted_at=part_inserted_at,
)

heartbeat_details = []
heartbeat_details: list[S3HeartbeatDetails] = []

def track_hearbeat_details(*details):
"""Record heartbeat details received."""
Expand Down Expand Up @@ -1423,6 +1423,7 @@ def track_hearbeat_details(*details):

detail = heartbeat_details[-1]

assert detail.upload_state is not None
assert len(detail.upload_state.parts) == 3
assert len(detail.done_ranges) == 3

Expand Down

0 comments on commit 975ff4f

Please sign in to comment.