diff --git a/test/examples/benchmark.compose.yml b/test/examples/benchmark.compose.yml index 5b5fcda7529..843a0f222bc 100644 --- a/test/examples/benchmark.compose.yml +++ b/test/examples/benchmark.compose.yml @@ -27,7 +27,7 @@ services: EXAMPLE_DIR: @EXAMPLE_PREFIX_DIR_COMPOSE@/benchmark/@EXAMPLE_SUFFIX_DIR_COMPOSE@ FASTDDS_DEFAULT_PROFILES_FILE: @FASTDDS_DEFAULT_PROFILES_FILE_PREFIX_COMPOSE@/benchmark/benchmark_profile.xml SUBSCRIBER_ADDITIONAL_ARGUMENTS: ${SUB_ARGS} - command: @SHELL_EXECUTABLE@ -c "@COMMAND_EXAMPLE_DIR_PREFIX_COMPOSE@/benchmark@FILE_EXTENSION@ subscriber $${SUBSCRIBER_ADDITIONAL_ARGUMENTS}" + command: @SHELL_EXECUTABLE@ -c "@COMMAND_EXAMPLE_DIR_PREFIX_COMPOSE@/benchmark@FILE_EXTENSION@ subscriber --reliable --transient-local --samples 1000 $${SUBSCRIBER_ADDITIONAL_ARGUMENTS}" publisher: image: @DOCKER_IMAGE_NAME@ @@ -43,4 +43,4 @@ services: EXAMPLE_DIR: @EXAMPLE_PREFIX_DIR_COMPOSE@/benchmark/@EXAMPLE_SUFFIX_DIR_COMPOSE@ FASTDDS_DEFAULT_PROFILES_FILE: @FASTDDS_DEFAULT_PROFILES_FILE_PREFIX_COMPOSE@/benchmark/benchmark_profile.xml PUBLISHER_ADDITIONAL_ARGUMENTS: ${PUB_ARGS} - command: @SHELL_EXECUTABLE@ -c "@COMMAND_EXAMPLE_DIR_PREFIX_COMPOSE@/benchmark@FILE_EXTENSION@ publisher $${PUBLISHER_ADDITIONAL_ARGUMENTS}" + command: @SHELL_EXECUTABLE@ -c "@COMMAND_EXAMPLE_DIR_PREFIX_COMPOSE@/benchmark@FILE_EXTENSION@ publisher --reliable --transient-local --samples 1000 $${PUBLISHER_ADDITIONAL_ARGUMENTS}" diff --git a/test/examples/test_benchmark.py b/test/examples/test_benchmark.py index d50ba9e5953..54d227d9ab2 100644 --- a/test/examples/test_benchmark.py +++ b/test/examples/test_benchmark.py @@ -44,10 +44,8 @@ def test_benchmark(pub_args, sub_args): """.""" ret = False out = '' - pub_requirements = '--reliable --transient-local -s 1000' - sub_requirements = '--reliable --transient-local -s 1000' - command_prerequisites = 'PUB_ARGS="' + pub_requirements + ' ' + pub_args + '" SUB_ARGS="' + sub_requirements + ' ' + sub_args + '" ' + command_prerequisites = 'PUB_ARGS="' + pub_args + '" SUB_ARGS="' + sub_args + '" ' try: out = subprocess.check_output(command_prerequisites + '@DOCKER_EXECUTABLE@ compose -f benchmark.compose.yml up',