From 613b2f9f81ed888c2fac9463963d6dc9d07ba762 Mon Sep 17 00:00:00 2001 From: URJala <159417921+URJala@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:41:15 +0200 Subject: [PATCH] =?UTF-8?q?Moved=20reset=20of=20speed=20slider=20to=20corr?= =?UTF-8?q?ect=20teardown=20function,=20so=20that=20it=20=E2=80=A6=20(#206?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …resets between each test. --- tests/test_spline_interpolation.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_spline_interpolation.cpp b/tests/test_spline_interpolation.cpp index f28d8899..47e3935e 100644 --- a/tests/test_spline_interpolation.cpp +++ b/tests/test_spline_interpolation.cpp @@ -153,14 +153,17 @@ class SplineInterpolationTest : public ::testing::Test static void TearDownTestSuite() { - // Set target speed scaling to 100% as one test change this value - g_ur_driver_->getRTDEWriter().sendSpeedSlider(1); - g_dashboard_client_->disconnect(); // Remove temporary file again std::remove(SPLINE_SCRIPT_FILE.c_str()); } + void TearDown() + { + // Set target speed scaling to 100% as one test change this value + g_ur_driver_->getRTDEWriter().sendSpeedSlider(1); + } + void SetUp() { step_time_ = 0.002;