]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix check-memory to use new upload API (which requires a "convergence" argument)...
authorZooko O'Whielacronx <zooko@zooko.com>
Mon, 24 Mar 2008 22:28:04 +0000 (15:28 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Mon, 24 Mar 2008 22:28:04 +0000 (15:28 -0700)
src/allmydata/test/check_memory.py

index c01769e78b9cc7506e5f3945ffe53844a2c40e84..b6293a5cf86bea6fdd9412a116eeb15a6fce8b1f 100644 (file)
@@ -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)