Skip to content

Commit

Permalink
Complete publisher/subscription QoS query API test coverage. (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic authored Sep 7, 2020
1 parent 99c968c commit fbe44b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_rmw_implementation/test/test_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@ TEST_F(CLASSNAME(TestPublisherUse, RMW_IMPLEMENTATION), get_actual_qos_with_bad_
ret = rmw_publisher_get_actual_qos(pub, nullptr);
EXPECT_EQ(RMW_RET_INVALID_ARGUMENT, ret);
rmw_reset_error();

const char * implementation_identifier = pub->implementation_identifier;
pub->implementation_identifier = "not-an-rmw-implementation-identifier";
ret = rmw_publisher_get_actual_qos(pub, &actual_qos_profile);
pub->implementation_identifier = implementation_identifier;
EXPECT_EQ(RMW_RET_INCORRECT_RMW_IMPLEMENTATION, ret);
rmw_reset_error();
}

TEST_F(CLASSNAME(TestPublisherUse, RMW_IMPLEMENTATION), get_actual_qos) {
Expand Down

0 comments on commit fbe44b1

Please sign in to comment.