diff --git a/tests/unit/modules/motion/test_motion.cpp b/tests/unit/modules/motion/test_motion.cpp index 60bb1e8..3317243 100644 --- a/tests/unit/modules/motion/test_motion.cpp +++ b/tests/unit/modules/motion/test_motion.cpp @@ -216,7 +216,7 @@ TEST_CASE("motion::triple_move", "[motion]") { motion.PlanMoveTo(Pulley, p, 1); // perform the move with a maximum step limit - REQUIRE(stepUntilDone(std::max({ i, s, p }) + 1) != -1); + REQUIRE(stepUntilDone(i + s + p) != -1); // check queue status REQUIRE(motion.QueueEmpty());