Commit d50c1bdc authored by Jeremy Hylton's avatar Jeremy Hylton

Give the connect thread a chance to run,

and remove old comment about disconnected errors.
parent e6e7681a
......@@ -453,11 +453,8 @@ class ConnectionTests(CommonSetupTearDown):
"Error after server restart; retrying.",
error=sys.exc_info())
get_transaction().abort()
# XXX This is a bloody pain. We're placing a heavy burden
# on users to catch a plethora of exceptions in order to
# write robust code. Need to think about implementing
# John Heintz's suggestion to make sure all exceptions
# inherit from POSException.
# Give the other thread a chance to run.
time.sleep(0.1)
zLOG.LOG("checkReconnection", zLOG.INFO, "finished")
self._storage.close()
......
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