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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Boxiang Sun
erp5
Commits
35712c2c
Commit
35712c2c
authored
Sep 16, 2019
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WSGI: fix getServerAddress() in tests
parent
fe06db19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
product/ERP5/bin/zopewsgi.py
product/ERP5/bin/zopewsgi.py
+4
-1
product/ERP5/tests/testInvalidationBug.py
product/ERP5/tests/testInvalidationBug.py
+3
-2
product/ERP5Type/tests/ProcessingNodeTestCase.py
product/ERP5Type/tests/ProcessingNodeTestCase.py
+2
-1
No files found.
product/ERP5/bin/zopewsgi.py
View file @
35712c2c
...
...
@@ -144,7 +144,10 @@ def createServer(application, logger, **kw):
**
kw
)
if
not
hasattr
(
server
,
'addr'
):
server
.
addr
=
server
.
adj
.
listen
[
0
][
3
]
try
:
server
.
addr
=
kw
[
'sockets'
][
0
].
getsockname
()
except
KeyError
:
server
.
addr
=
server
.
adj
.
listen
[
0
][
3
]
elif
not
server
.
addr
:
server
.
addr
=
server
.
sockinfo
[
3
]
return
server
...
...
product/ERP5/tests/testInvalidationBug.py
View file @
35712c2c
...
...
@@ -98,8 +98,9 @@ class TestInvalidationBug(ERP5TypeTestCase):
activity_tool
=
self
.
portal
.
portal_activities
node_list
=
list
(
activity_tool
.
getProcessingNodeList
())
node_list
.
remove
(
getCurrentNode
())
assert
node_list
and
isinstance
(
storage
,
ClientStorage
),
\
"this unit test must be run with at least 2 ZEO clients"
assert
node_list
and
isinstance
(
storage
,
ClientStorage
),
(
node_list
,
storage
,
"this unit test must be run with at least 2 ZEO clients"
)
### Prepare unit test, to minimize amount of work during critical section
## make sure activity tool's OOBTree for family mapping is loaded before the test
...
...
product/ERP5Type/tests/ProcessingNodeTestCase.py
View file @
35712c2c
...
...
@@ -166,7 +166,8 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
else
:
webdav_ports
=
()
sockets
.
append
(
s
)
ZopeTestCase
.
_print
(
message
%
(
server_type
,
ip
,
port
))
if
verbose
:
ZopeTestCase
.
_print
(
message
%
(
server_type
,
ip
,
port
))
if
webdav_ports
:
break
server_type
=
'WebDAV'
...
...
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