Skip to content

Commit dd47eff

Browse files
committed
made the tests more resilient
1 parent 0663be8 commit dd47eff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_python_utils_tests/test_generators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ async def test_abatcher():
1616
async def test_abatcher_timed():
1717
batches = []
1818
async for batch in python_utils.abatcher(
19-
python_utils.acount(stop=10, delay=0.04),
20-
interval=0.1
19+
python_utils.acount(stop=10, delay=0.08),
20+
interval=0.2
2121
):
2222
batches.append(batch)
2323

_python_utils_tests/test_time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
@pytest.mark.parametrize(
1111
'timeout,interval,interval_multiplier,maximum_interval,iterable,result', [
12-
(0.1, 0.06, 0.45, 0.1, python_utils.acount, 2),
13-
(0.2, 0.06, 0.43, 0.1, python_utils.acount(), 4),
12+
(0.2, 0.1, 0.4, 0.2, python_utils.acount, 2),
13+
(0.3, 0.1, 0.4, 0.2, python_utils.acount(), 3),
1414
(0.3, 0.06, 1.0, None, python_utils.acount, 5),
1515
(timedelta(seconds=0.1), timedelta(seconds=0.06),
1616
2.0, timedelta(seconds=0.1), python_utils.acount, 2),

0 commit comments

Comments
 (0)