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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
ec7effb1
Commit
ec7effb1
authored
Sep 24, 2010
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked debugging info again.
parent
02993353
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/ZEO/tests/testConnection.py
src/ZEO/tests/testConnection.py
+11
-7
No files found.
src/ZEO/tests/testConnection.py
View file @
ec7effb1
...
@@ -167,7 +167,7 @@ This tests tries to provoke this bug by:
...
@@ -167,7 +167,7 @@ This tests tries to provoke this bug by:
... 'ZEO', level=logging.DEBUG)
... 'ZEO', level=logging.DEBUG)
>>> logging.getLogger('ZEO').debug(
>>> logging.getLogger('ZEO').debug(
... 'Initial tid %
s
' % conn.root()._p_serial)
... 'Initial tid %
r
' % conn.root()._p_serial)
- disconnecting the first client (closing it with a persistent cache),
- disconnecting the first client (closing it with a persistent cache),
...
@@ -208,12 +208,16 @@ This tests tries to provoke this bug by:
...
@@ -208,12 +208,16 @@ This tests tries to provoke this bug by:
... time.sleep(.1)
... time.sleep(.1)
... db = ZODB.DB(ZEO.ClientStorage.ClientStorage(addr, client='x'))
... db = ZODB.DB(ZEO.ClientStorage.ClientStorage(addr, client='x'))
... with lock:
... with lock:
... @wait_until("connected and we've caught up", timeout=199)
... logging.getLogger('ZEO').debug('Locked %s' % c)
... @wait_until("connected and we have caught up", timeout=199)
... def _():
... def _():
...
return
(db.storage.is_connected()
...
if
(db.storage.is_connected()
... and db.storage.lastTransaction()
... and db.storage.lastTransaction()
... == db.storage._server.lastTransaction()
... == db.storage._server.lastTransaction()
... )
... ):
... logging.getLogger('ZEO').debug(
... 'Connected %r' % db.storage.lastTransaction())
... return True
...
...
... conn = db.open()
... conn = db.open()
... for i in range(1000):
... for i in range(1000):
...
@@ -221,10 +225,10 @@ This tests tries to provoke this bug by:
...
@@ -221,10 +225,10 @@ This tests tries to provoke this bug by:
... print 'bad', c, i, conn.root()[i].value,
... print 'bad', c, i, conn.root()[i].value,
... print conn2.root()[i].value
... print conn2.root()[i].value
... bad = True
... bad = True
... print 'client debug log'
... print 'client debug log
with lock held
'
... while handler.records:
... while handler.records:
... record = handler.records.pop(0)
... record = handler.records.pop(0)
... print record.name, record.levelname
... print record.name, record.levelname
,
... print handler.format(record)
... print handler.format(record)
... if bad:
... if bad:
... print open('server-%s.log' % addr[1]).read()
... print open('server-%s.log' % addr[1]).read()
...
@@ -248,7 +252,7 @@ This tests tries to provoke this bug by:
...
@@ -248,7 +252,7 @@ This tests tries to provoke this bug by:
>>> db.close()
>>> db.close()
>>> db2.close()
>>> db2.close()
"""
# '
"""
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
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