From e7003133f5208526654ccdd02ee50c6c893e2f4c Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sun, 30 Jan 2022 12:08:53 +0100 Subject: [PATCH] tests/motion: Do not step in test_motion::ResetMotionSim Calling stepUntilDone defeats the purpose of the following REQUIRE(). The test should always start from a clean state. --- tests/unit/modules/motion/test_motion.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/unit/modules/motion/test_motion.cpp b/tests/unit/modules/motion/test_motion.cpp index a0cb811..4d2f1dc 100644 --- a/tests/unit/modules/motion/test_motion.cpp +++ b/tests/unit/modules/motion/test_motion.cpp @@ -26,7 +26,6 @@ ssize_t stepUntilDone(size_t maxSteps = 100000) { } void ResetMotionSim() { - stepUntilDone(); REQUIRE(motion.QueueEmpty()); motion.SetPosition(Idler, 0);