test_battery_status.py::TestBatteryStatus::test_async_battery_status
is very slow
#1168
Labels
part:tests
Affects the unit, integration and performance (benchmarks) tests
type:tech-debt
Improves the project without visible changes for users
Milestone
What happened?
The test
test_battery_status.py::TestBatteryStatus::test_async_battery_status
is very slow, it takes about 6 seconds to complete.What did you expect instead?
The test to run fast.
Affected version(s)
No response
Affected part(s)
Unit, integration and performance tests (part:tests)
Extra information
The problem seems to be in the finalization of either the
mock_microgrid
or theBatteryStatusTracker
, as most of the time is spent in leaving theasync with
block having those 2.Time machine is used to speed up the time, but maybe async solipsism isn't and there is something awaiting for some time in the finalization.
The text was updated successfully, but these errors were encountered: