Skip to content

Commit

Permalink
made timings looser
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Dec 5, 2024
1 parent 216c4f1 commit f7d908a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 @@ -1906,7 +1906,7 @@ async def mock_call(*args, **kwargs):
assert read_rows.call_count == 10
assert len(result) == 10
# if run in sequence, we would expect this to take 1 second
assert call_time < 0.2
assert call_time < 0.5

@CrossSync.pytest
async def test_read_rows_sharded_concurrency_limit(self):
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 @@ -1587,7 +1587,7 @@ def mock_call(*args, **kwargs):
call_time = time.monotonic() - start_time
assert read_rows.call_count == 10
assert len(result) == 10
assert call_time < 0.2
assert call_time < 0.5

def test_read_rows_sharded_concurrency_limit(self):
"""Only 10 queries should be processed concurrently. Others should be queued
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/data/test__helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_attempt_timeout_w_sleeps(self):
sleep_time = 0.1
for i in range(3):
found_value = next(generator)
assert abs(found_value - expected_value) < 0.001
assert abs(found_value - expected_value) < 0.1
sleep(sleep_time)
expected_value -= sleep_time

Expand Down

0 comments on commit f7d908a

Please sign in to comment.