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/simplejson/components/%22file:/something?a=commitdiff_plain;h=35009a585f67ef8eaa6ae4fb49f831f7b2f648f0;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