Skip to content

Commit 613b2f9

Browse files
authored
Moved reset of speed slider to correct teardown function, so that it … (#206)
…resets between each test.
1 parent a567be0 commit 613b2f9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_spline_interpolation.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,17 @@ class SplineInterpolationTest : public ::testing::Test
153153

154154
static void TearDownTestSuite()
155155
{
156-
// Set target speed scaling to 100% as one test change this value
157-
g_ur_driver_->getRTDEWriter().sendSpeedSlider(1);
158-
159156
g_dashboard_client_->disconnect();
160157
// Remove temporary file again
161158
std::remove(SPLINE_SCRIPT_FILE.c_str());
162159
}
163160

161+
void TearDown()
162+
{
163+
// Set target speed scaling to 100% as one test change this value
164+
g_ur_driver_->getRTDEWriter().sendSpeedSlider(1);
165+
}
166+
164167
void SetUp()
165168
{
166169
step_time_ = 0.002;

0 commit comments

Comments
 (0)