From: David Stainton Date: Thu, 30 Jul 2015 21:13:39 +0000 (-0700) Subject: Add final download to alice bob test X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=85822670a3532cbc295bf46ce8952df91e7f1cb2;p=tahoe-lafs%2Ftahoe-lafs.git Add final download to alice bob test - that is to say after alice deletes the file she rewrites it and this causes bob to download this latest version --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 9233d2da..1007f733 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -390,6 +390,9 @@ class MagicFolderTestMixin(MagicFolderTestMixin, ShouldFailMixin, ReallyEqualMix d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_queued', client=self.alice_magicfolder._client), 0)) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.directories_created', client=self.alice_magicfolder._client), 0)) + d.addCallback(Bob_wait_for_download) + d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('downloader.objects_downloaded', client=self.bob_magicfolder._client), 3)) + def cleanup_Alice_and_Bob(result): d = defer.succeed(None) d.addCallback(lambda ign: self.alice_magicfolder.finish())