Skip to content

Commit

Permalink
Refs #21096: Fix cyclone dds participant discovery test. Match the do…
Browse files Browse the repository at this point in the history
…mains

Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL committed Jun 6, 2024
1 parent 6d66053 commit 8ad37cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/blackbox/common/BlackboxTestsDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2194,7 +2194,8 @@ TEST(Discovery, discovery_cyclone_participant_with_custom_pid)

/* Create participant with custom transport and listener */
DiscoveryListener listener;
uint32_t domain_id = static_cast<uint32_t>(GET_PID()) % 230;
/* We need to match the domain id in the datagram */
uint32_t domain_id = 0;
DomainParticipantFactory* factory = DomainParticipantFactory::get_instance();
DomainParticipant* participant = factory->create_participant(domain_id, participant_qos, &listener);
ASSERT_NE(nullptr, participant);
Expand Down

0 comments on commit 8ad37cc

Please sign in to comment.