]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix test_create_drop_uploader 157/head
authorDavid Stainton <dstainton415@gmail.com>
Fri, 17 Apr 2015 20:47:13 +0000 (21:47 +0100)
committerDavid Stainton <dstainton415@gmail.com>
Fri, 17 Apr 2015 21:29:18 +0000 (22:29 +0100)
This test must use the correct function signature for it's mock function...
obviously. =-p

src/allmydata/test/test_client.py

index 4b152e5afd84946aadca14c37d55768d53728b3c..01cfc40fc6c125f2bbe63ffc3c66d9747de689c7 100644 (file)
@@ -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