[Zodb-checkins] CVS: ZODB3/ZODB/tests - testConfig.py:1.10

Barry Warsaw barry@wooz.org
Thu, 23 Jan 2003 10:39:47 -0500


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv2007

Modified Files:
	testConfig.py 
Log Message:
test_zeo_config(): Pick a large port number that is more likely to not
exist (no guarantees though, oh well).


=== ZODB3/ZODB/tests/testConfig.py 1.9 => 1.10 ===
--- ZODB3/ZODB/tests/testConfig.py:1.9	Thu Jan 23 10:12:54 2003
+++ ZODB3/ZODB/tests/testConfig.py	Thu Jan 23 10:39:43 2003
@@ -81,11 +81,15 @@
         self.assertRaises(ReadOnlyError, self._test, cfg)
 
     def test_zeo_config(self):
-        #self.fail("This test hangs on Debian Linux 2.4.20 i686 unknown")
+        # We're looking for a port that doesn't exist so a connection attempt
+        # will fail.  Instead of elaborate logic to loop over a port
+        # calculation, we'll just pick a simple "random", likely to not-exist
+        # port number and add an elaborate comment explaining this instead.
+        # Go ahead, grep for 9.
         cfg = """
         <zodb>
           <zeoclient>
-            server localhost:9
+            server localhost:56897
             wait false
           </zeoclient>
         </zodb>