From cd424349a4a1d763b9c2ee17c2001da48fc74fcc Mon Sep 17 00:00:00 2001 From: Frank Sinapi Date: Fri, 6 Oct 2023 14:19:32 -0400 Subject: [PATCH] test(api): test_filter_zero_duration_step actually tests filtering zero-duration steps --- .../opentrons/hardware_control/backends/test_ot3_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tests/opentrons/hardware_control/backends/test_ot3_utils.py b/api/tests/opentrons/hardware_control/backends/test_ot3_utils.py index 9cf0de99f44..efdd64392d1 100644 --- a/api/tests/opentrons/hardware_control/backends/test_ot3_utils.py +++ b/api/tests/opentrons/hardware_control/backends/test_ot3_utils.py @@ -72,7 +72,7 @@ def test_filter_zero_duration_step() -> None: Axis.P_R: 0, } moves = [Move.build_dummy([Axis.X, Axis.Y, Axis.Z_L, Axis.Z_R, Axis.P_L])] - for block in moves[0].blocks: + for block in (moves[0].blocks[0], moves[0].blocks[1]): block.distance = f64(25.0) block.time = f64(1.0) block.initial_speed = f64(25.0) @@ -84,7 +84,7 @@ def test_filter_zero_duration_step() -> None: moves=moves, present_nodes=present_nodes, ) - assert len(move_group) == 3 + assert len(move_group) == 2 for step in move_group: assert set(present_nodes) == set(step.keys())