Skip to content

Commit

Permalink
Add check for event count returned
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
  • Loading branch information
Blast545 committed Jul 20, 2020
1 parent 925fb89 commit fe545c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rcl/test/rcl/test_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe545c5

Please sign in to comment.