]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Minor cleanup.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 14 Sep 2015 19:16:24 +0000 (20:16 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 17:43:01 +0000 (18:43 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_magic_folder.py

index c46c959b94d4333da40b922b1e5db403236c5ab2..2df0009118a32aa0970a51832e0eda3fefc7e171 100644 (file)
@@ -204,13 +204,13 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual
         d.addCallback(lambda ign: self.create_invite_join_magic_folder(u"Alice", self.local_dir))
         d.addCallback(lambda ign: self.create_magicfolder())
 
-        def create_test_file(result, filename):
+        def create_test_file(filename):
             d2 = self.magicfolder.uploader.set_hook('processed')
             test_file = abspath_expanduser_unicode(filename, base=self.local_dir)
             fileutil.write(test_file, "meow %s" % filename)
             self.notify(to_filepath(test_file), self.inotify.IN_CLOSE_WRITE)
             return d2
-        d.addCallback(lambda ign: create_test_file(ign, u"what1"))
+        d.addCallback(lambda ign: create_test_file(u"what1"))
         def fu(res):
             print "upload complete"
             return res
@@ -221,7 +221,7 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual
         d.addCallback(self._restart_client)
         d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_succeeded'), 1))
         d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_queued'), 0))
-        d.addCallback(lambda ign: create_test_file(ign, u"what2"))
+        d.addCallback(lambda ign: create_test_file(u"what2"))
 
         def fu2(res):
             print "2nd upload complete"