tests: Factor "Open another ClientStorage to the same server" into generic...
tests: Factor "Open another ClientStorage to the same server" into generic _new_storage_client() (#170) This allows ZODB tests to recognize ZEO as client-server storage and so make "load vs external invalidate" test added in https://github.com/zopefoundation/ZODB/pull/345 to reproduce data corruption problem reported at https://github.com/zopefoundation/ZEO/issues/155. For the reference: that problem should be fixed by https://github.com/zopefoundation/ZEO/pull/169. We drop # It's hard to find the actual address. # The rpc mgr addr attribute is a list. Each element in the # list is a socket domain (AF_INET, AF_UNIX, etc.) and an # address. note because at the time it was added (81f586c4) it came with addr = self._storage._rpc_mgr.addr[0][1] but nowdays after 03867188 getting to server address is just by ClientStorage._addr. /reviewed-on https://github.com/zopefoundation/ZEO/pull/170 /reviewed-by @d-maurer
Showing
Please register or sign in to comment