Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ECS core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ECS
ECS core
Commits
ccfc92d1
Commit
ccfc92d1
authored
5 months ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
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
!26
v0.4.1 Changes from feedback after CHEP + from mFLES agent implementation
Pipeline
#31906
passed with warnings
5 months ago
Stage: quality
Stage: tests
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_EcsConfServ.py
+3
-0
3 additions, 0 deletions
tests/test_EcsConfServ.py
tests/test_StateCmdAgent.py
+6
-0
6 additions, 0 deletions
tests/test_StateCmdAgent.py
with
9 additions
and
0 deletions
tests/test_EcsConfServ.py
+
3
−
0
View file @
ccfc92d1
...
...
@@ -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
]:
...
...
This diff is collapsed.
Click to expand it.
tests/test_StateCmdAgent.py
+
6
−
0
View file @
ccfc92d1
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment