Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
48f41aa8
Commit
48f41aa8
authored
Aug 25, 2022
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rapid-cdn: c->h: Wait for the long entry to appear
parent
d3f0ae25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
software/rapid-cdn/test/test.py
software/rapid-cdn/test/test.py
+10
-4
No files found.
software/rapid-cdn/test/test.py
View file @
48f41aa8
...
@@ -1442,10 +1442,16 @@ class SlaveHttpFrontendTestCase(HttpFrontendTestCase):
...
@@ -1442,10 +1442,16 @@ class SlaveHttpFrontendTestCase(HttpFrontendTestCase):
self
.
instance_path
,
'*'
,
'var'
,
'log'
,
'httpd'
,
log_name
self
.
instance_path
,
'*'
,
'var'
,
'log'
,
'httpd'
,
log_name
))[
0
]
))[
0
]
with
open
(
log_file
)
as
fh
:
# sometimes logs appear with a bit of delay, so give it a chance
self
.
assertRegex
(
for
_
in
range
(
5
):
fh
.
readlines
()[
-
1
],
with
open
(
log_file
,
'r'
)
as
fh
:
log_regexp
)
line
=
fh
.
readlines
()[
-
1
]
if
re
.
match
(
log_regexp
,
line
):
break
time
.
sleep
(
0.5
)
self
.
assertRegex
(
line
,
log_regexp
)
class
TestMasterRequestDomain
(
HttpFrontendTestCase
,
TestDataMixin
):
class
TestMasterRequestDomain
(
HttpFrontendTestCase
,
TestDataMixin
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment