From 62f87cdd2a917be71cae464265189d09dadff30d Mon Sep 17 00:00:00 2001 From: Steve Macenski Date: Wed, 7 Feb 2024 18:55:51 -0800 Subject: [PATCH] Fix flaky system tests (#4108) * fix flaky tests * donze Signed-off-by: enricosutera --- .../src/behaviors/spin/test_spin_behavior_node.cpp | 10 +++++----- nav2_system_tests/src/waypoint_follower/tester.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nav2_system_tests/src/behaviors/spin/test_spin_behavior_node.cpp b/nav2_system_tests/src/behaviors/spin/test_spin_behavior_node.cpp index a1efed8cd96..f16db47851a 100644 --- a/nav2_system_tests/src/behaviors/spin/test_spin_behavior_node.cpp +++ b/nav2_system_tests/src/behaviors/spin/test_spin_behavior_node.cpp @@ -118,12 +118,12 @@ INSTANTIATE_TEST_SUITE_P( SpinRecoveryTests, SpinBehaviorTestFixture, ::testing::Values( - std::make_tuple(-M_PIf32 / 6.0, 0.1), - std::make_tuple(M_PI_4f32, 0.1), - std::make_tuple(-M_PI_2f32, 0.1), - std::make_tuple(M_PIf32, 0.1), + std::make_tuple(-M_PIf32 / 6.0, 0.15), + std::make_tuple(M_PI_4f32, 0.15), + std::make_tuple(-M_PI_2f32, 0.15), + std::make_tuple(M_PIf32, 0.10), std::make_tuple(3.0 * M_PIf32 / 2.0, 0.15), - std::make_tuple(-2.0 * M_PIf32, 0.1), + std::make_tuple(-2.0 * M_PIf32, 0.15), std::make_tuple(4.0 * M_PIf32, 0.15)), testNameGenerator); diff --git a/nav2_system_tests/src/waypoint_follower/tester.py b/nav2_system_tests/src/waypoint_follower/tester.py index 2a3ef3df537..b5df396006f 100755 --- a/nav2_system_tests/src/waypoint_follower/tester.py +++ b/nav2_system_tests/src/waypoint_follower/tester.py @@ -202,7 +202,7 @@ def main(argv=sys.argv[1:]): # wait a few seconds to make sure entire stacks are up time.sleep(10) - wps = [[-0.52, -0.54], [0.58, -0.55], [0.58, 0.52]] + wps = [[-0.52, -0.54], [0.58, -0.55], [1.78, -0.57]] starting_pose = [-2.0, -0.5] test = WaypointFollowerTest()