File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2009,7 +2009,7 @@ async def test_read_rows_sharded_negative_batch_timeout(self):
20092009 from google .api_core .exceptions import DeadlineExceeded
20102010
20112011 async def mock_call (* args , ** kwargs ):
2012- await CrossSync .sleep (0.05 )
2012+ await CrossSync .sleep (0.06 )
20132013 return [mock .Mock ()]
20142014
20152015 async with self ._make_client () as client :
@@ -2019,11 +2019,11 @@ async def mock_call(*args, **kwargs):
20192019 num_calls = 15
20202020 queries = [ReadRowsQuery () for _ in range (num_calls )]
20212021 with pytest .raises (ShardedReadRowsExceptionGroup ) as exc :
2022- await table .read_rows_sharded (queries , operation_timeout = 0.01 )
2022+ await table .read_rows_sharded (queries , operation_timeout = 0.05 )
20232023 assert isinstance (exc .value , ShardedReadRowsExceptionGroup )
20242024 # _CONCURRENCY_LIMIT calls will run, and won't be interrupted
20252025 # calls after the limit will be cancelled due to timeout
2026- assert len (exc .value .exceptions ) > = num_calls - _CONCURRENCY_LIMIT
2026+ assert len (exc .value .exceptions ) = = num_calls - _CONCURRENCY_LIMIT
20272027 assert all (
20282028 isinstance (e .__cause__ , DeadlineExceeded )
20292029 for e in exc .value .exceptions
Original file line number Diff line number Diff line change @@ -1669,7 +1669,7 @@ def test_read_rows_sharded_negative_batch_timeout(self):
16691669 from google .api_core .exceptions import DeadlineExceeded
16701670
16711671 def mock_call (* args , ** kwargs ):
1672- CrossSync ._Sync_Impl .sleep (0.05 )
1672+ CrossSync ._Sync_Impl .sleep (0.06 )
16731673 return [mock .Mock ()]
16741674
16751675 with self ._make_client () as client :
@@ -1679,7 +1679,7 @@ def mock_call(*args, **kwargs):
16791679 num_calls = 15
16801680 queries = [ReadRowsQuery () for _ in range (num_calls )]
16811681 with pytest .raises (ShardedReadRowsExceptionGroup ) as exc :
1682- table .read_rows_sharded (queries , operation_timeout = 0.01 )
1682+ table .read_rows_sharded (queries , operation_timeout = 0.05 )
16831683 assert isinstance (exc .value , ShardedReadRowsExceptionGroup )
16841684 assert len (exc .value .exceptions ) >= num_calls - _CONCURRENCY_LIMIT
16851685 assert all (
You can’t perform that action at this time.
0 commit comments