-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Open
Technical Debt
Copy link
Labels
part:testsAffects the unit, integration and performance (benchmarks) testsAffects the unit, integration and performance (benchmarks) teststype:tech-debtImproves the project without visible changes for usersImproves the project without visible changes for users
Milestone
Description
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 the BatteryStatusTracker
, as most of the time is spent in leaving the async 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.
Metadata
Metadata
Assignees
Labels
part:testsAffects the unit, integration and performance (benchmarks) testsAffects the unit, integration and performance (benchmarks) teststype:tech-debtImproves the project without visible changes for usersImproves the project without visible changes for users
Type
Projects
Status
To do