Skip to content

Commit

Permalink
cras_cpp_common: diag_utils: Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
peci1 committed Oct 19, 2024
1 parent 2d12eb9 commit cbe0c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cras_cpp_common/test/test_diag_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2666,6 +2666,8 @@ TEST(DiagnosedSubscriber, AllSupportedCallbackSignaturesWithHeader) // NOLINT

TEST(OfflineUpdater, Basic) // NOLINT
{
ros::Time::setNow({10, 0});

cras::OfflineDiagUpdater updater("test");

double minFreq {0.0};
Expand All @@ -2674,8 +2676,6 @@ TEST(OfflineUpdater, Basic) // NOLINT
diagnostic_updater::FrequencyStatus task(params, "name");
updater.add(task);

ros::Time::setNow({10, 0});

auto msg = updater.update(ros::Time::now());
EXPECT_FALSE(msg.has_value());

Expand Down

0 comments on commit cbe0c77

Please sign in to comment.