Skip to content

Commit

Permalink
Restore exceptions for Connext and message timestamps on Windows (#765)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Sorbini <[email protected]>
  • Loading branch information
asorbini authored Apr 9, 2021
1 parent 9e2ff98 commit 3186e15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rclpy/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import platform
import time
import unittest

from rcl_interfaces.srv import GetParameters
import rclpy
import rclpy.executors
from rclpy.utilities import get_rmw_implementation_identifier

# TODO(sloretz) Reduce fudge once wait_for_service uses node graph events
TIME_FUDGE = 0.3
Expand Down Expand Up @@ -89,6 +91,9 @@ def test_concurrent_calls_to_service(self):
self.node.destroy_client(cli)
self.node.destroy_service(srv)

@unittest.skipIf(
get_rmw_implementation_identifier() == 'rmw_connextdds' and platform.system() == 'Windows',
reason='Source timestamp not implemented for Connext on Windows')
def test_service_timestamps(self):
cli = self.node.create_client(GetParameters, 'get/parameters')
srv = self.node.create_service(
Expand Down
5 changes: 5 additions & 0 deletions rclpy/test/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import pathlib
import platform
import time
import unittest
from unittest.mock import Mock
Expand Down Expand Up @@ -49,6 +50,7 @@
from rclpy.qos import QoSProfile
from rclpy.qos import QoSReliabilityPolicy
from rclpy.time_source import USE_SIM_TIME_NAME
from rclpy.utilities import get_rmw_implementation_identifier
from test_msgs.msg import BasicTypes

TEST_NODE = 'my_node'
Expand Down Expand Up @@ -144,6 +146,9 @@ def test_create_raw_subscription(self):
def dummy_cb(self, msg):
pass

@unittest.skipIf(
get_rmw_implementation_identifier() == 'rmw_connextdds' and platform.system() == 'Windows',
reason='Source timestamp not implemented for Connext on Windows')
def test_take(self):
basic_types_pub = self.node.create_publisher(BasicTypes, 'take_test', 1)
sub = self.node.create_subscription(
Expand Down

0 comments on commit 3186e15

Please sign in to comment.