merge patch to integrate decentralized directories with patch to "only test log.err when Twisted is new enough to let us ignore the generated errors"

This commit is contained in:
Zooko O'Whielacronx 2007-12-03 15:25:14 -07:00
parent cc1612aee5
commit 2c58d3399c
2 changed files with 4 additions and 3 deletions

View File

@ -757,7 +757,7 @@ class Publish:
# 4a: may need to run recovery algorithm
# 5: when enough responses are back, we're done
self.log("starting publish, data is %r" % (newdata,))
self.log("got enough peers, datalen is %s" % len(newdata))
self._writekey = self._node.get_writekey()
assert self._writekey, "need write capability to publish"

View File

@ -111,8 +111,9 @@ class FakeClient:
self._num_peers = num_peers
self._peerids = [tagged_hash("peerid", "%d" % i)[:20]
for i in range(self._num_peers)]
def log(self, msg):
log.msg(msg)
self.introducer_client = FakeIntroducerClient()
def log(self, msg, **kw):
return log.msg(msg, **kw)
def get_renewal_secret(self):
return "I hereby permit you to renew my files"