Skip to content

Commit

Permalink
Update src/Sensor_TEST.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Franco Cipollone <franco.c@ekumenlabs.com>
  • Loading branch information
francocipollone and chapulina committed Aug 19, 2021
1 parent 6aef657 commit a90110c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Sensor_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ TEST_F(SensorUpdate, Update)
sdfSensor.SetName(kSensorName);
sdfSensor.SetTopic(kSensorTopic);
sdfSensor.SetEnableMetrics(kEnableMetrics);
std::unique_ptr<Sensor> sensor = std::make_unique<TestSensor>();
std::unique_ptr<TestSensor> sensor = std::make_unique<TestSensor>();
sensor->Load(sdfSensor);
ASSERT_EQ(kSensorTopic, sensor->Topic());
ASSERT_EQ(kEnableMetrics, sensor->EnableMetrics());
Expand All @@ -206,7 +206,6 @@ TEST_F(SensorUpdate, Update)
}
ASSERT_EQ(kNumberOfMessages, performanceMetricsMsgsCount);

auto testSensor = dynamic_cast<TestSensor*>(sensor.get());
EXPECT_EQ(testSensor->updateCount, performanceMetricsMsgsCount);
}

Expand Down

0 comments on commit a90110c

Please sign in to comment.