Skip to content

Commit

Permalink
Moved reset of speed slider to correct teardown function, so that it … (
Browse files Browse the repository at this point in the history
UniversalRobots#206)

…resets between each test.
  • Loading branch information
URJala authored Jul 9, 2024
1 parent a567be0 commit 613b2f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_spline_interpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 613b2f9

Please sign in to comment.