From 35009a585f67ef8eaa6ae4fb49f831f7b2f648f0 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Fri, 17 Apr 2015 21:47:13 +0100 Subject: [PATCH] Fix test_create_drop_uploader This test must use the correct function signature for it's mock function... obviously. =-p --- src/allmydata/test/test_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2