From: Daira Hopwood Date: Mon, 14 Sep 2015 19:16:24 +0000 (+0100) Subject: Minor cleanup. X-Git-Url: https://git.rkrishnan.org/reliability?a=commitdiff_plain;h=234546b8d7f0c18624afe985aac56339ebfbee9a;p=tahoe-lafs%2Ftahoe-lafs.git Minor cleanup. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index c46c959b..2df00091 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -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"