Skip to content

Commit

Permalink
loosened test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Dec 12, 2024
1 parent 8e3334f commit e11f701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/data/_async/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ async def mock_call(*args, **kwargs):
assert isinstance(exc.value, ShardedReadRowsExceptionGroup)
# _CONCURRENCY_LIMIT calls will run, and won't be interrupted
# calls after the limit will be cancelled due to timeout
assert len(exc.value.exceptions) == num_calls - _CONCURRENCY_LIMIT
assert len(exc.value.exceptions) >= num_calls - _CONCURRENCY_LIMIT
assert all(
isinstance(e.__cause__, DeadlineExceeded)
for e in exc.value.exceptions
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/data/_sync_autogen/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@ def mock_call(*args, **kwargs):
with pytest.raises(ShardedReadRowsExceptionGroup) as exc:
table.read_rows_sharded(queries, operation_timeout=0.05)
assert isinstance(exc.value, ShardedReadRowsExceptionGroup)
assert len(exc.value.exceptions) == num_calls - _CONCURRENCY_LIMIT
assert len(exc.value.exceptions) >= num_calls - _CONCURRENCY_LIMIT
assert all(
(
isinstance(e.__cause__, DeadlineExceeded)
Expand Down

0 comments on commit e11f701

Please sign in to comment.