[Zope-Checkins] CVS: ZODB3/ZEO/tests - zeoserver.py:1.13.10.5

Jeremy Hylton jeremy@zope.com
Fri, 30 May 2003 11:02:17 -0400


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv16222

Modified Files:
      Tag: ZODB3-auth-branch
	zeoserver.py 
Log Message:
Fix handling of monitor address.


=== ZODB3/ZEO/tests/zeoserver.py 1.13.10.4 => 1.13.10.5 ===
--- ZODB3/ZEO/tests/zeoserver.py:1.13.10.4	Thu May 29 19:29:36 2003
+++ ZODB3/ZEO/tests/zeoserver.py	Fri May 30 11:02:16 2003
@@ -163,13 +163,16 @@
     addr = ('localhost', zeo_port)
     log(label, 'creating the storage server')
     storage = zo.storages[0].open()
+    mon_addr = None
+    if zo.monitor_address:
+        mon_addr = zo.monitor_address.address
     server = StorageServer(
         zo.address,
         {"1": storage},
         read_only=zo.read_only,
         invalidation_queue_size=zo.invalidation_queue_size,
         transaction_timeout=zo.transaction_timeout,
-        monitor_address=zo.monitor_address.address,
+        monitor_address=mon_addr,
         auth_protocol=zo.auth_protocol,
         auth_filename=zo.auth_database,
         auth_realm=zo.auth_realm)