Check queue_depth value in pub and sub tests

This commit is contained in:
Christophe Bedard 2019-06-21 09:58:33 +02:00
parent 8917400c74
commit b7fc66a881
4 changed files with 27 additions and 4 deletions

View file

@ -57,6 +57,13 @@ class TestSubscription(TraceTestCase):
self.assertEqual(len(test_sub_init_events), 1, 'cannot find test topic name')
test_sub_init_event = test_sub_init_events[0]
# Check queue_depth value
test_queue_depth = self.get_field(test_sub_init_event, 'queue_depth')
self.assertEqual(
test_queue_depth,
10,
'sub_init event does not have expected queue depth value')
# Check that the node handle matches the node_init event
node_init_events = self.get_events_with_name('ros2:rcl_node_init')
test_sub_node_init_events = self.get_events_with_procname(