diff --git a/api/tests/opentrons/hardware_control/test_ot3_api.py b/api/tests/opentrons/hardware_control/test_ot3_api.py index 00677d1df2e..f3ee9ea1903 100644 --- a/api/tests/opentrons/hardware_control/test_ot3_api.py +++ b/api/tests/opentrons/hardware_control/test_ot3_api.py @@ -14,7 +14,7 @@ TypedDict, ) from typing_extensions import Literal -from math import copysign +from math import copysign, isclose import pytest import types from decoy import Decoy @@ -952,13 +952,13 @@ async def test_liquid_probe_plunger_moves( expected_plunger_move = ( min(p_travel_required_for_z, p_working_mm) + p_impulse_mm ) - assert plunger_move == expected_plunger_move + assert isclose(plunger_move, expected_plunger_move) mount_travel_time = plunger_move / config.plunger_speed mount_travel_distance = mount_speed * mount_travel_time max_z_distance -= mount_travel_distance - move_mount_z_time = (max_z_distance + probe_safe_reset_mm) / mount_speed + move_mount_z_time = (max_z_distance + probe_pass_z_offset_mm) / mount_speed p_travel_required_for_z = move_mount_z_time * config.plunger_speed