Skip to content

Commit

Permalink
Refs #20734: Fix some tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Apr 4, 2024
1 parent 49ae802 commit 598f64c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 121 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 5 additions & 5 deletions fastdds_python/src/swig/fastdds/dds/topic/TypeSupport.i
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

// This constructor takes ownership of the TopicDataType pointer
// We need SWIG to be aware of it, so we ignore it here and redefine it later
%ignore eprosima::fastdds::dds::TypeSupport::TypeSupport(fastdds::dds::TopicDataType*);
%ignore eprosima::fastdds::dds::TypeSupport::TypeSupport(TopicDataType*);

%ignore eprosima::fastdds::dds::TypeSupport::TypeSupport(DynamicPubSubType);

Expand All @@ -37,14 +37,14 @@
// Do not worry about the heap allocation, SWIG recognizes the method as a constructor
// and successfully deallocates on destruction
%extend eprosima::fastdds::dds::TypeSupport {
%apply SWIGTYPE *DISOWN { eprosima::fastdds::dds::TopicDataType* ptr };
TypeSupport(eprosima::fastdds::dds::TopicDataType* ptr)
%apply SWIGTYPE *DISOWN { TopicDataType* ptr };
TypeSupport(TopicDataType* ptr)
{
return new eprosima::fastdds::dds::TypeSupport(ptr);
}

%apply SWIGTYPE *DISOWN { eprosima::fastdds::dds::TopicDataType* ptr };
void set(eprosima::fastdds::dds::TopicDataType* ptr)
%apply SWIGTYPE *DISOWN { TopicDataType* ptr };
void set(TopicDataType* ptr)
{
self->reset(ptr);
}
Expand Down
12 changes: 0 additions & 12 deletions fastdds_python/test/api/test_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,13 +1505,6 @@ def test_domain_participant_qos():
assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind)
assert(fastdds.FILTER_DIFFERENT_HOST == participant_qos.
wire_protocol().builtin.discovery_config.ignoreParticipantFlags)
# ## .typelookup_config;
participant_qos.wire_protocol().builtin.typelookup_config.use_client = True
participant_qos.wire_protocol().builtin.typelookup_config.use_server = True
assert(participant_qos.wire_protocol().builtin.
typelookup_config.use_client)
assert(participant_qos.wire_protocol().builtin.
typelookup_config.use_server)
# ## .metatrafficUnicastLocatorList;
locator = fastdds.Locator_t()
locator.address = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 168, 1, 2)
Expand Down Expand Up @@ -1761,11 +1754,6 @@ def test_domain_participant_qos():
assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind)
assert(fastdds.FILTER_DIFFERENT_HOST == default_participant_qos.
wire_protocol().builtin.discovery_config.ignoreParticipantFlags)
# ## .typelookup_config;
assert(default_participant_qos.wire_protocol().builtin.
typelookup_config.use_client)
assert(default_participant_qos.wire_protocol().builtin.
typelookup_config.use_server)
# ## .metatrafficUnicastLocatorList;
locator = default_participant_qos.wire_protocol().builtin. \
metatrafficUnicastLocatorList[0]
Expand Down

0 comments on commit 598f64c

Please sign in to comment.