Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid more deprecations #255

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tf2_ros/test/test_buffer_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ TEST_F(TestBufferServer, lookup_transform_available)

auto spin_result = executor_.spin_until_future_complete(
result_ready_future, std::chrono::seconds(3));
ASSERT_EQ(spin_result, rclcpp::executor::FutureReturnCode::SUCCESS);
ASSERT_EQ(spin_result, rclcpp::FutureReturnCode::SUCCESS);

EXPECT_TRUE(mock_client_->accepted_);
EXPECT_EQ(mock_client_->result_.code, rclcpp_action::ResultCode::SUCCEEDED);
Expand All @@ -193,7 +193,7 @@ TEST_F(TestBufferServer, lookup_transform_timeout)
auto start_time = std::chrono::system_clock::now();
auto spin_result = executor_.spin_until_future_complete(
result_ready_future, std::chrono::seconds(3));
ASSERT_EQ(spin_result, rclcpp::executor::FutureReturnCode::SUCCESS);
ASSERT_EQ(spin_result, rclcpp::FutureReturnCode::SUCCESS);
auto end_time = std::chrono::system_clock::now();

auto time_ms = std::chrono::duration_cast<std::chrono::milliseconds>(end_time - start_time);
Expand All @@ -214,7 +214,7 @@ TEST_F(TestBufferServer, lookup_transform_delayed)
// Expect executor to timeout since transform is not available yet
auto spin_result = executor_.spin_until_future_complete(
result_ready_future, std::chrono::seconds(1));
EXPECT_EQ(spin_result, rclcpp::executor::FutureReturnCode::TIMEOUT);
EXPECT_EQ(spin_result, rclcpp::FutureReturnCode::TIMEOUT);

EXPECT_TRUE(mock_client_->accepted_);

Expand All @@ -229,7 +229,7 @@ TEST_F(TestBufferServer, lookup_transform_delayed)
// Wait some more
spin_result = executor_.spin_until_future_complete(
result_ready_future, std::chrono::seconds(3));
ASSERT_EQ(spin_result, rclcpp::executor::FutureReturnCode::SUCCESS);
ASSERT_EQ(spin_result, rclcpp::FutureReturnCode::SUCCESS);

EXPECT_EQ(mock_client_->result_.code, rclcpp_action::ResultCode::SUCCEEDED);
}
Expand Down