Skip to content

Commit

Permalink
Increasing test count from timeout handling changes (ros-navigation#4234
Browse files Browse the repository at this point in the history
)

Signed-off-by: Steve Macenski <[email protected]>
  • Loading branch information
SteveMacenski authored and ajtudela committed Apr 19, 2024
1 parent 18bd649 commit 1ddc760
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ TEST_F(BTActionNodeTestFixture, test_server_timeout_success)

// since the server timeout is 20ms and bt loop duration is 10ms, number of ticks should
// be at most 2, but it can be 1 too, because the tickOnce may execute two ticks.
EXPECT_LE(ticks, 2);
EXPECT_LE(ticks, 3);
EXPECT_GE(ticks, 1);
}

Expand Down Expand Up @@ -364,7 +364,7 @@ TEST_F(BTActionNodeTestFixture, test_server_timeout_failure)
EXPECT_EQ(result, BT::NodeStatus::FAILURE);

// since the server timeout is 90ms and bt loop duration is 10ms, number of ticks should be 9
EXPECT_EQ(ticks, 9);
EXPECT_EQ(ticks, 10);

// start a new execution cycle with the previous BT to ensure previous state doesn't leak into
// the new cycle
Expand Down

0 comments on commit 1ddc760

Please sign in to comment.