diff --git a/rcl/test/rcl/test_events.cpp b/rcl/test/rcl/test_events.cpp index 36e3638c5..37631214c 100644 --- a/rcl/test/rcl/test_events.cpp +++ b/rcl/test/rcl/test_events.cpp @@ -769,6 +769,8 @@ TEST_F(TestEventFixture, test_sub_message_lost_event) rmw_message_lost_status_t message_lost_status; ret = rcl_take_event(&subscription_event, &message_lost_status); EXPECT_EQ(ret, RCL_RET_OK) << rcl_get_error_string().str; + EXPECT_EQ(message_lost_status.total_count, 0u); + EXPECT_EQ(message_lost_status.total_count_change, 0u); // clean up ret = rcl_event_fini(&subscription_event);