Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
137
Merge Requests
137
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
883424c0
Commit
883424c0
authored
1 year ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Thread.is_alive
parent
7067b045
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testSelectionTool.py
...lateItem/portal_components/test.erp5.testSelectionTool.py
+1
-1
product/ERP5/tests/erp5_url_checker.py
product/ERP5/tests/erp5_url_checker.py
+2
-2
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testSelectionTool.py
View file @
883424c0
...
...
@@ -248,7 +248,7 @@ class TestSelectionPersistence(unittest.TestCase):
t
=
Thread
(
target
=
thread_func
,
args
=
(
self
.
db
.
open
,))
t
.
start
()
t
.
join
(
60
)
self
.
assertFalse
(
t
.
is
A
live
())
self
.
assertFalse
(
t
.
is
_a
live
())
def
testSelectionParamConflictResolution
(
self
):
# same user edits the same selection with two different parameters
...
...
This diff is collapsed.
Click to expand it.
product/ERP5/tests/erp5_url_checker.py
View file @
883424c0
...
...
@@ -55,7 +55,7 @@ def main():
print
(
"thread: %i request: %i url: %s"
%
(
i
,
request_number
,
url
))
else
:
for
t
in
range
(
0
,
max_thread
):
if
threads
[
t
].
is
A
live
()
==
0
:
if
threads
[
t
].
is
_a
live
()
==
0
:
url
=
'//user%i:user%i@localhost:9673%s?__ac_name=user%s&__ac_password=user%s'
%
\
(
t
,
t
,
list_url
[
i
][:
-
1
],
t
,
t
)
threads
[
t
]
=
Thread
(
target
=
checker
[
t
].
CheckUrl
,
kwargs
=
{
'url'
:
url
})
...
...
@@ -142,7 +142,7 @@ class Checker(URLOpener):
try
:
thread
=
Thread
(
target
=
self
.
SearchUrl
,
args
=
(
url
,))
thread
.
start
()
while
thread
.
is
A
live
():
while
thread
.
is
_a
live
():
sleep
(
0.5
)
print
(
"Connection to %s went fine"
%
url
)
except
IOError
as
err
:
...
...
This diff is collapsed.
Click to expand it.
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