Skip to content
Snippets Groups Projects
Commit ccfc92d1 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau
Browse files

Add delays at start of few tests to prevent hangups on 1st action due to ZMQ Host unavailable

parent 17ca841b
No related branches found
No related tags found
1 merge request!26v0.4.1 Changes from feedback after CHEP + from mFLES agent implementation
Pipeline #31906 passed with warnings
......@@ -247,6 +247,9 @@ def CleanupLogs() -> Generator[ None, None, None ]:
if ".log" in file_path and os.path.exists(file_path):
os.remove(file_path)
# To avoid rare cases where next test starts and complain about missing log file
time.sleep(0.1)
@pytest.fixture()
def DumpFiles_List() -> Generator[ List[ str ], None, None ]:
......
......@@ -763,6 +763,9 @@ def test_StateCmd_publish_current_state__( CmdRouter: Generator[ subprocess.Pope
) -> None:
# "publish_current_state" command between Main and SubA
# Ensure min 1 heartbeat recvd w/o edge effects (Give enough time to all agents to start)
time.sleep(1 * StateCmdTesterZmqInstMain.heartbeat_interval.total_seconds())
subagent_id: str = "SubA"
StateCmdTesterZmqInstMain.add_subagent( subagent_id, False )
......@@ -800,6 +803,9 @@ def test_StateCmd_publish_current_state_mon__( CmdRouter: Generator[ subprocess.
) -> None:
# "publish_current_state" command between Main and SubASub through SubA
# Ensure min 1 heartbeat recvd w/o edge effects (Give enough time to all agents to start)
time.sleep(1 * StateCmdTesterZmqInstMain.heartbeat_interval.total_seconds())
subagent_id: str = "SubA"
StateCmdTesterZmqInstMain.add_subagent( subagent_id, False )
subsubagent_id: str = "SubASub"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment