Skip to content

Commit

Permalink
Make some tests more robust (#314)
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>

Removed changes to diff-drive command when backporting to ign-gazebo3

Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
ahcorde authored and chapulina committed Jul 23, 2021
1 parent 23e1680 commit a8894e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/EntityComponentManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Entity EntityComponentManager::CreateEntity()
{
Entity entity = ++this->dataPtr->entityCount;

if (entity == std::numeric_limits<int64_t>::max())
if (entity == std::numeric_limits<uint64_t>::max())
{
ignwarn << "Reached maximum number of entities [" << entity << "]"
<< std::endl;
Expand Down
2 changes: 1 addition & 1 deletion test/integration/diff_drive_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ TEST_P(DiffDriveTest, SkidPublishCmd)
int maxSleep = 30;
for (; odomPoses.size() < 3 && sleep < maxSleep; ++sleep)
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
std::this_thread::sleep_for(std::chrono::milliseconds(200));
}
EXPECT_NE(maxSleep, sleep);

Expand Down
2 changes: 1 addition & 1 deletion test/integration/sensors_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ TEST_F(SensorsFixture, IGN_UTILS_TEST_DISABLED_ON_MAC(HandleRemovedEntities))
};

server.AddSystem(this->systemPtr);
server.Run(true, 10, false);
server.Run(true, 50, false);
ASSERT_NE(nullptr, ecm);

testDefaultTopics();
Expand Down

0 comments on commit a8894e9

Please sign in to comment.