]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
check_memory.py: fix benign-but-noisy vdrive.furl handling bug
authorBrian Warner <warner@allmydata.com>
Tue, 17 Jul 2007 02:34:52 +0000 (19:34 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 17 Jul 2007 02:34:52 +0000 (19:34 -0700)
src/allmydata/test/check_memory.py

index b344dfebca68ba30ae76272211a9c9b5d86f51fb..1804f14a87a0f87ab57f97d954595664eb8122c6 100644 (file)
@@ -101,7 +101,7 @@ class SystemFramework(testutil.PollMixin):
     def make_nodes(self):
         q = self.introducer_and_vdrive
         self.introducer_furl = q.urls["introducer"]
-        vdrive_furl = q.urls["vdrive"]
+        self.vdrive_furl = q.urls["vdrive"]
         self.nodes = []
         for i in range(self.numnodes):
             nodedir = os.path.join(self.basedir, "node%d" % i)
@@ -110,7 +110,7 @@ class SystemFramework(testutil.PollMixin):
             f.write(self.introducer_furl)
             f.close()
             f = open(os.path.join(nodedir, "vdrive.furl"), "w")
-            f.write(vdrive_furl)
+            f.write(self.vdrive_furl)
             f.close()
             if self.discard_shares:
                 # for this test, we tell the storage servers to throw out all
@@ -146,7 +146,7 @@ this file are ignored.
         f.write(self.introducer_furl + "\n")
         f.close()
         f = open(os.path.join(clientdir, "vdrive.furl"), "w")
-        f.write(self.introducer_furl + "\n")
+        f.write(self.vdrive_furl + "\n")
         f.close()
         if self.discard_shares:
             f = open(os.path.join(clientdir, "debug_no_storage"), "w")