Skip to content

Commit d1ce97e

Browse files
committed
Refs #22593: Increase timeouts in configuration and delivery_mechanisms
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
1 parent 6d6d7e6 commit d1ce97e

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

test/examples/test_configuration-I.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,20 @@ def test_configuration(pub_args, sub_args):
4444
menv["PUB_ARGS"] = pub_requirements + ' ' + pub_args
4545
menv["SUB_ARGS"] = sub_requirements + ' ' + sub_args
4646

47+
timeout = 30
48+
#In windows timeout argument does not wor properly
49+
#It is not able to kill the subprocess when it is surpassed
50+
#and when the subprocess exists then it is checked.
51+
#This test is about samples (1000) so for big msgs in windows
52+
#it can take longer. Set it to a higher value
53+
if os.name == 'nt':
54+
timeout = 200
55+
4756
try:
4857
out = subprocess.check_output('"@DOCKER_EXECUTABLE@" compose -f configuration.compose.yml up',
4958
stderr=subprocess.STDOUT,
5059
shell=True,
51-
timeout=40,
60+
timeout=timeout,
5261
env=menv
5362
)
5463
render_out = out.decode().split('\n')

test/examples/test_delivery_mechanisms.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,20 @@ def test_delivery_mechanisms(pub_args, sub_args, isub_args, pubsub_args, repetit
8484
# Set a random suffix to the cotainer name to avoid conflicts with other containers
8585
menv["CONTAINER_SUFFIX_COMPOSE"] = str(random.randint(0,100))
8686

87+
timeout = 30
88+
#In windows timeout argument does not wor properly
89+
#It is not able to kill the subprocess when it is surpassed
90+
#and when the subprocess exists then it is checked.
91+
#This test is about samples (1000) so for big msgs in windows
92+
#it can take longer. Set it to a higher value
93+
if os.name == 'nt':
94+
timeout = 200
95+
8796
try:
8897
out = subprocess.check_output('"@DOCKER_EXECUTABLE@" compose -f delivery_mechanisms.compose.yml up',
8998
stderr=subprocess.STDOUT,
9099
shell=True,
91-
timeout=50,
100+
timeout=timeout,
92101
env=menv
93102
).decode().split('\n')
94103

0 commit comments

Comments
 (0)