[Zodb-checkins]
SVN: ZODB/branches/jim-async-client/src/ZEO/tests/testZEO.py
Made server shutdown more violent (on Unix) in hopes of provoking
Jim Fulton
jim at zope.com
Tue Jul 18 11:37:49 EDT 2006
Log message for revision 69173:
Made server shutdown more violent (on Unix) in hopes of provoking
server disconnects that are detected by the client without a
heartbeat.
Changed:
U ZODB/branches/jim-async-client/src/ZEO/tests/testZEO.py
-=-
Modified: ZODB/branches/jim-async-client/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/branches/jim-async-client/src/ZEO/tests/testZEO.py 2006-07-18 15:37:12 UTC (rev 69172)
+++ ZODB/branches/jim-async-client/src/ZEO/tests/testZEO.py 2006-07-18 15:37:49 UTC (rev 69173)
@@ -14,14 +14,15 @@
"""Test suite for ZEO based on ZODB.tests."""
# System imports
+import asyncore
+import logging
import os
import random
+import signal
import socket
-import asyncore
import tempfile
import time
import unittest
-import logging
# ZODB test support
import ZODB
@@ -243,7 +244,14 @@
self.assert_(ZEO.zrpc.connection.client_timeout_count
> client_timeout_count)
self._dostore()
- self.shutdownServer()
+
+ if hasattr(os, 'kill'):
+ # Kill server violently, in hopes of provoking problem
+ os.kill(self._pids[0], signal.SIGKILL)
+ self._servers[0] = None
+ else:
+ self.shutdownServer()
+
for i in range(91):
# wait for disconnection
if not self._storage.is_connected():
More information about the Zodb-checkins
mailing list