Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hardware): add progress output to subsystem firmware update process #12059

Merged
merged 11 commits into from
Feb 9, 2023
Merged
Prev Previous commit
Next Next commit
fix(hardware): fixed task aggregation and test
  • Loading branch information
pmoegenburg committed Feb 7, 2023
commit bc5d463450087a36721593565e88c85f31865a6d
2 changes: 1 addition & 1 deletion hardware/opentrons_hardware/firmware_update/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def run_updates(
for node_id, hex_file in self._update_details.items()
]

task = asyncio.create_task(asyncio.gather(*tasks))
task = asyncio.gather(*tasks)
while True:
try:
yield await asyncio.wait_for(self._status_queue.get(), 0.25)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@ async def test_run_updates(
hex_processor=mock_hex_record_processor,
ack_wait_seconds=11,
),
mock.call().__aiter__(),
mock.call(
node_id=target_2.bootloader_node,
hex_processor=mock_hex_record_processor,
ack_wait_seconds=11,
),
mock.call().__aiter__(),
]
)

Expand Down