From: David Stainton Date: Fri, 17 Apr 2015 20:47:13 +0000 (+0100) Subject: Fix test_create_drop_uploader X-Git-Url: https://git.rkrishnan.org/status?a=commitdiff_plain;h=7c423074fb491f92d6ee576ec34b19095a963df4;p=tahoe-lafs%2Ftahoe-lafs.git Fix test_create_drop_uploader This test must use the correct function signature for it's mock function... obviously. =-p --- diff --git a/src/allmydata/test/test_client.py b/src/allmydata/test/test_client.py index 4b152e5a..01cfc40f 100644 --- a/src/allmydata/test/test_client.py +++ b/src/allmydata/test/test_client.py @@ -303,11 +303,13 @@ class Basic(testutil.ReallyEqualMixin, unittest.TestCase): class MockDropUploader(service.MultiService): name = 'drop-upload' - def __init__(self, client, upload_dircap, local_dir_utf8, inotify=None): + def __init__(self, client, upload_dircap, local_dir_utf8, dbfile, inotify=None, + pending_delay=1.0): service.MultiService.__init__(self) self.client = client self.upload_dircap = upload_dircap self.local_dir_utf8 = local_dir_utf8 + self.dbfile = dbfile self.inotify = inotify mock_drop_uploader.side_effect = MockDropUploader