Skip to content

Commit

Permalink
Replace callback log with better test failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
DownerCase committed Jan 27, 2025
1 parent 97ba864 commit be2237e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecal/tests/cpp/pubsub_test/src/pubsub_test_shm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ TEST(core_cpp_pubsub, SubscriberFastReconnectionSHM) {
const eCAL::SDataTypeInformation & /*data_type_info_*/,
const eCAL::SReceiveCallbackData & /*data_*/) {
{
std::cerr << "Callback received message\n";
std::lock_guard<std::mutex> lk(cv_m);
data_received = true;
}
Expand All @@ -236,7 +235,7 @@ TEST(core_cpp_pubsub, SubscriberFastReconnectionSHM) {
cv.wait_for(cv_lk, RECEIVE_TIMEOUT,
[&data_received]() { return data_received; });

EXPECT_TRUE(data_received);
EXPECT_TRUE(data_received) << "No messages received within the timeout";
};

// 1 - Subscribe to topic and receive a message
Expand Down

0 comments on commit be2237e

Please sign in to comment.