Fix std::string construction. (#636)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
This commit is contained in:
parent
2f76cdc9e4
commit
f5702e41a2
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ TEST_F(CLASSNAME(TestSubscriptionFixture, RMW_IMPLEMENTATION), test_subscription
|
|||
ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
|
||||
ASSERT_EQ(
|
||||
std::string(test_string),
|
||||
std::string(*msg_loaned->string_value.data, msg_loaned->string_value.size));
|
||||
std::string(msg_loaned->string_value.data, msg_loaned->string_value.size));
|
||||
} else {
|
||||
ret = rcl_take(&subscription, &msg, nullptr, nullptr);
|
||||
ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue