Skip to content

Commit

Permalink
Fix dvl integration test (#348)
Browse files Browse the repository at this point in the history

---------

Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Jun 6, 2023
1 parent e1a8c1f commit 68c1839
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Manager::Manager() :
//////////////////////////////////////////////////
Manager::~Manager()
{
this->dataPtr->sensors.clear();
}

//////////////////////////////////////////////////
Expand Down
6 changes: 6 additions & 0 deletions test/integration/dvl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ TEST_P(DopplerVelocityLogTest, BottomTrackingWhileStatic)
4 * config.trackingNoise));
}
EXPECT_EQ(0, message.status());

this->manager.Remove(sensor->Id());
}

/////////////////////////////////////////////////
Expand Down Expand Up @@ -431,6 +433,8 @@ TEST_P(DopplerVelocityLogTest, WaterMassTrackingWhileStatic)
EXPECT_EQ(velocityReference, message.beams(i).velocity().reference());
}
EXPECT_EQ(0, message.status());

this->manager.Remove(sensor->Id());
}

/////////////////////////////////////////////////
Expand Down Expand Up @@ -512,6 +516,8 @@ TEST_P(DopplerVelocityLogTest, BottomTrackingWhileInMotion)
EXPECT_EQ(velocityReference, message.beams(i).velocity().reference());
}
EXPECT_EQ(0, message.status());

this->manager.Remove(sensor->Id());
}

INSTANTIATE_TEST_SUITE_P(DopplerVelocityLogTests, DopplerVelocityLogTest,
Expand Down

0 comments on commit 68c1839

Please sign in to comment.