Skip to content

Commit e0ee3b0

Browse files
SakodaShintarokaigohirao
authored andcommitted
fix(ar_tag_based_localizer): added 1 second wait to test (autowarefoundation#6624)
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
1 parent 9d13a54 commit e0ee3b0

File tree

1 file changed

+3
-1
lines changed
  • localization/landmark_based_localizer/ar_tag_based_localizer/test

1 file changed

+3
-1
lines changed

localization/landmark_based_localizer/ar_tag_based_localizer/test/test.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ class TestArTagBasedLocalizer : public ::testing::Test
5656
TEST_F(TestArTagBasedLocalizer, test_setup) // NOLINT
5757
{
5858
// Check if the constructor finishes successfully
59-
EXPECT_TRUE(true);
59+
// For some unknown reason, the test sometimes fails to terminate normally and results in failure
60+
// unless a 1-second wait is implemented.
61+
std::this_thread::sleep_for(std::chrono::seconds(1));
6062
}
6163

6264
int main(int argc, char ** argv)

0 commit comments

Comments
 (0)