Commit d9254971 authored by Jeremy Hylton's avatar Jeremy Hylton

Make sure the local variable storage is defined.

parent 48358a78
...@@ -159,9 +159,10 @@ def main(): ...@@ -159,9 +159,10 @@ def main():
test_addr = ('localhost', test_port) test_addr = ('localhost', test_port)
addr = ('localhost', zeo_port) addr = ('localhost', zeo_port)
log(label, 'creating the storage server') log(label, 'creating the storage server')
storage = zo.storages[0].open()
server = ZEO.StorageServer.StorageServer( server = ZEO.StorageServer.StorageServer(
zo.address, zo.address,
{"1": zo.storages[0].open()}, {"1": storage},
read_only=zo.read_only, read_only=zo.read_only,
invalidation_queue_size=zo.invalidation_queue_size, invalidation_queue_size=zo.invalidation_queue_size,
transaction_timeout=zo.transaction_timeout, transaction_timeout=zo.transaction_timeout,
......
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