Skip to content

Commit

Permalink
Relax the timeouts in the register tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Jan 24, 2024
1 parent 813bc0c commit 3da3aea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cmd/register_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"-j",
"register-access",
"--timeout=10",
"10,",
expect_register,
environment_variables={
Expand All @@ -172,6 +173,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"-j",
"register-access",
"--timeout=10",
"10",
expect_register,
environment_variables={
Expand All @@ -188,6 +190,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"-j",
"register-access",
"--timeout=10",
"10,",
expect_register,
"Reference value",
Expand Down
9 changes: 9 additions & 0 deletions tests/cmd/register_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
environment_variables={
**transport_factory(100).environment,
"YAKUT_PATH": str(OUTPUT_DIR),
Expand All @@ -109,6 +110,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
environment_variables={
**transport_factory(100).environment,
"YAKUT_PATH": str(OUTPUT_DIR),
Expand All @@ -126,6 +128,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
"10",
environment_variables={
**transport_factory(100).environment,
Expand All @@ -144,6 +147,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
"10,11",
environment_variables={
**transport_factory(100).environment,
Expand All @@ -162,6 +166,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=3", # Shorter timeout here because we know one is going to time out.
"10-13",
environment_variables={
**transport_factory(100).environment,
Expand All @@ -182,6 +187,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
"10,11",
environment_variables={
**transport_factory(100).environment,
Expand All @@ -201,6 +207,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
"10,11",
"--optional-register",
environment_variables={
Expand All @@ -220,6 +227,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
"10",
"--detailed",
environment_variables={
Expand All @@ -238,6 +246,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"register-batch",
f"--file={file}",
"--timeout=10",
"10",
"--only=iv", # The requested register is not immutable-volatile so it will be skipped.
environment_variables={
Expand Down
4 changes: 4 additions & 0 deletions tests/cmd/register_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"-j",
"register-list",
"--timeout=10",
"10",
environment_variables={
"YAKUT_TRANSPORT": transport_factory(100).expression,
Expand All @@ -109,6 +110,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"-j",
"register-list",
"--timeout=10",
"10,", # Mind the comma!
environment_variables={
"YAKUT_TRANSPORT": transport_factory(100).expression,
Expand All @@ -125,6 +127,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"-j",
"register-list",
"--timeout=3", # Shorter timeout because some nodes are expected to not respond.
"10..13",
environment_variables={
"YAKUT_TRANSPORT": transport_factory(100).expression,
Expand All @@ -144,6 +147,7 @@ def _unittest_cmd(compiled_dsdl: Any, transport_factory: TransportFactory) -> No
status, stdout, _ = execute_cli(
"-j",
"register-list",
"--timeout=3", # Shorter timeout because some nodes are expected to not respond.
"10..13",
"--optional-service",
environment_variables={
Expand Down

0 comments on commit 3da3aea

Please sign in to comment.