Skip to content

Commit f98e580

Browse files
committed
Increase sample_rate in some formula tests to reduce flakiness
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 11e1aaa commit f98e580

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/timeseries/_formula_engine/test_formula_composition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def test_formula_composition( # pylint: disable=too-many-locals
2323
mocker: MockerFixture,
2424
) -> None:
2525
"""Test the composition of formulas."""
26-
mockgrid = MockMicrogrid(grid_side_meter=False, sample_rate_s=0.15)
26+
mockgrid = MockMicrogrid(grid_side_meter=False, sample_rate_s=0.2)
2727
mockgrid.add_batteries(3)
2828
mockgrid.add_solar_inverters(2)
2929
await mockgrid.start(mocker)

tests/timeseries/test_ev_charger_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def test_state_updates(self, mocker: MockerFixture) -> None:
4646
async def check_states(
4747
expected: dict[int, EVChargerState],
4848
) -> None:
49-
await asyncio.sleep(0.02)
49+
await asyncio.sleep(0.05)
5050
for comp_id, exp_state in expected.items():
5151
assert state_tracker.get(comp_id) == exp_state
5252

0 commit comments

Comments
 (0)