Skip to content

Commit 2556e12

Browse files
Fix flaky test
Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
1 parent 4f38de5 commit 2556e12

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ddsenabler/test/ddsEnablerTypedTests/DdsEnablerTypedTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class DDSEnablerTypedTest : public ddsenablertester::DDSEnablerTester
4646
a_type.type_sup_.reset(new Type()); \
4747
\
4848
ASSERT_TRUE(create_publisher(a_type)); \
49+
\
50+
/* Wait some time for discovery */ \
51+
std::this_thread::sleep_for(std::chrono::milliseconds(wait_after_publication_ms)); \
4952
\
5053
ASSERT_EQ(get_received_types(), 1); \
5154
ASSERT_EQ(get_received_topics(), 1); \

0 commit comments

Comments
 (0)