Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
7cb6e87c
Commit
7cb6e87c
authored
Jun 27, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bind to port 0 some of the time to avoid get_port
And maybe avoid spurious test failures due to port contention.
parent
31d41127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/ZEO/tests/ConnectionTests.py
src/ZEO/tests/ConnectionTests.py
+4
-3
No files found.
src/ZEO/tests/ConnectionTests.py
View file @
7cb6e87c
...
@@ -80,10 +80,9 @@ class CommonSetupTearDown(StorageTestBase):
...
@@ -80,10 +80,9 @@ class CommonSetupTearDown(StorageTestBase):
self
.
__super_setUp
()
self
.
__super_setUp
()
logging
.
info
(
"setUp() %s"
,
self
.
id
())
logging
.
info
(
"setUp() %s"
,
self
.
id
())
self
.
file
=
'storage_conf'
self
.
file
=
'storage_conf'
self
.
addr
=
[]
self
.
_servers
=
[]
self
.
_servers
=
[]
self
.
caches
=
[]
self
.
caches
=
[]
self
.
_newAddr
()
self
.
addr
=
[(
'localhost'
,
0
)]
self
.
startServer
()
self
.
startServer
()
def
tearDown
(
self
):
def
tearDown
(
self
):
...
@@ -179,6 +178,8 @@ class CommonSetupTearDown(StorageTestBase):
...
@@ -179,6 +178,8 @@ class CommonSetupTearDown(StorageTestBase):
zeoport
,
stop
=
forker
.
start_zeo_server
(
zeoport
,
stop
=
forker
.
start_zeo_server
(
sconf
,
zconf
,
addr
[
1
],
keep
,
**
kw
)
sconf
,
zconf
,
addr
[
1
],
keep
,
**
kw
)
self
.
_servers
.
append
(
stop
)
self
.
_servers
.
append
(
stop
)
if
addr
[
1
]
==
0
:
self
.
addr
[
index
]
=
zeoport
def
shutdownServer
(
self
,
index
=
0
):
def
shutdownServer
(
self
,
index
=
0
):
logging
.
info
(
"shutdownServer(index=%d) @ %s"
%
logging
.
info
(
"shutdownServer(index=%d) @ %s"
%
...
@@ -978,7 +979,7 @@ class TimeoutTests(CommonSetupTearDown):
...
@@ -978,7 +979,7 @@ class TimeoutTests(CommonSetupTearDown):
self
.
assertRaises
(
ClientDisconnected
,
storage
.
tpc_finish
,
txn
)
self
.
assertRaises
(
ClientDisconnected
,
storage
.
tpc_finish
,
txn
)
# Make sure it's logged as CRITICAL
# Make sure it's logged as CRITICAL
for
line
in
open
(
"server-
%s.log"
%
self
.
addr
[
0
][
1
]
):
for
line
in
open
(
"server-
0.log"
):
if
((
'Transaction timeout after'
in
line
)
and
if
((
'Transaction timeout after'
in
line
)
and
(
'CRITICAL ZEO.StorageServer'
in
line
)
(
'CRITICAL ZEO.StorageServer'
in
line
)
):
):
...
...
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