Commit 94d7da5b authored by Tres Seaver's avatar Tres Seaver

Remove spurious output comparisons for logged errors.

Timeout error showing up in log before the 'client has newer' error.
parent b92d880c
...@@ -1143,22 +1143,14 @@ def client_has_newer_data_than_server(): ...@@ -1143,22 +1143,14 @@ def client_has_newer_data_than_server():
... time.sleep(.01) ... time.sleep(.01)
>>> db.close() >>> db.close()
>>> for record in handler.records[:5]: >>> client_errors = [x for x in handler.records
... print formatter.format(record) ... if x.filename == 'ClientStorage.py' and
... # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE ... x.funcName == 'verify_cache' and
ZEO.ClientStorage CRITICAL client ... x.levelname == 'CRITICAL' and
Client has seen newer transactions than server! ... x.msg == 'client Client has seen '
ZEO.zrpc ERROR (...) CW: error in notifyConnected (('127.0.0.1', ...)) ... 'newer transactions than server!']
Traceback (most recent call last): >>> len(client_errors) >= 2
... True
ClientStorageError: client Client has seen newer transactions than server!
ZEO.ClientStorage CRITICAL client
Client has seen newer transactions than server!
ZEO.zrpc ERROR (...) CW: error in notifyConnected (('127.0.0.1', ...))
Traceback (most recent call last):
...
ClientStorageError: client Client has seen newer transactions than server!
...
Note that the errors repeat because the client keeps on trying to connect. Note that the errors repeat because the client keeps on trying to connect.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment