]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add final download to alice bob test
authorDavid Stainton <dstainton415@gmail.com>
Thu, 30 Jul 2015 21:13:39 +0000 (14:13 -0700)
committerDavid Stainton <dstainton415@gmail.com>
Thu, 30 Jul 2015 21:13:39 +0000 (14:13 -0700)
- that is to say after alice deletes the file she rewrites it
and this causes bob to download this latest version

src/allmydata/test/test_magic_folder.py

index 9233d2da53ec044c3f29301c0968a5ec25b43367..1007f7332a7fa2f73963add81a134950870dda67 100644 (file)
@@ -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())