From dfdbb9564817e6b1aaa7ab01836abf8e5e3f0f8e Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Mon, 24 Mar 2008 15:28:04 -0700 Subject: [PATCH] fix check-memory to use new upload API (which requires a "convergence" argument), and change it to measure convergence instead of random-key, since convergence is the use case we care about more --- src/allmydata/test/check_memory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/check_memory.py b/src/allmydata/test/check_memory.py index c01769e7..b6293a5c 100644 --- a/src/allmydata/test/check_memory.py +++ b/src/allmydata/test/check_memory.py @@ -367,7 +367,7 @@ this file are ignored. if self.mode in ("upload", "upload-self"): files[name] = self.create_data(name, size) d = self.control_rref.callRemote("upload_from_file_to_uri", - files[name], convergence=None) + files[name], convergence="check-memory convergence string") def _done(uri): os.remove(files[name]) del files[name] @@ -391,7 +391,7 @@ this file are ignored. files[name] = self.create_data(name, size) u = self.nodes[0].getServiceNamed("uploader") d = self.nodes[0].debug_wait_for_client_connections(self.numnodes+1) - d.addCallback(lambda res: u.upload(upload.FileName(files[name]))) + d.addCallback(lambda res: u.upload(upload.FileName(files[name], convergence="check-memory convergence string"))) d.addCallback(lambda results: results.uri) else: raise RuntimeError("unknown mode=%s" % self.mode) -- 2.45.2