From b9c2235b7bc74121db407b1c3f9a01159f53c712 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Fri, 10 Jan 2025 14:02:40 +0100 Subject: [PATCH] Update timings for movel tests The times are only rough and should reflect the trajectory time plus some overhead. --- tests/test_instruction_executor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_instruction_executor.cpp b/tests/test_instruction_executor.cpp index 06d0e1d5b..5d9ea9b0c 100644 --- a/tests/test_instruction_executor.cpp +++ b/tests/test_instruction_executor.cpp @@ -204,13 +204,13 @@ TEST_F(InstructionExecutorTest, execute_movel_success) ASSERT_TRUE(executor_->moveL({ -0.203, 0.263, 0.559, 0.68, -1.083, -2.076 }, 1.5, 1.5)); auto end = std::chrono::steady_clock::now(); auto duration = std::chrono::duration_cast(end - start); - ASSERT_NEAR(duration.count(), 750, 100); + ASSERT_NEAR(duration.count(), 800, 150); start = std::chrono::steady_clock::now(); ASSERT_TRUE(executor_->moveL({ -0.203, 0.463, 0.559, 0.68, -1.083, -2.076 }, 1.5, 1.5)); end = std::chrono::steady_clock::now(); duration = std::chrono::duration_cast(end - start); - ASSERT_NEAR(duration.count(), 750, 100); + ASSERT_NEAR(duration.count(), 800, 150); // time parametrization start = std::chrono::steady_clock::now(); @@ -282,4 +282,4 @@ int main(int argc, char* argv[]) } return RUN_ALL_TESTS(); -} \ No newline at end of file +}