Clean up a couple logged errors.

I don't really understand them but I can flush them. :/
This commit is contained in:
Jean-Paul Calderone 2019-03-08 11:43:37 -05:00
parent 62531f020b
commit 9ad76688cc

View File

@ -1477,6 +1477,13 @@ class SingleMagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, Reall
from foolscap.eventual import flushEventualQueue
self.addCleanup(flushEventualQueue)
# Sometimes a collective scan fails with UnrecoverableFileError. It's
# not clear to me why. :/ This fixes the issue, though, and all other
# asserted-about behavior is provided whether this case is hit or not.
self.addCleanup(
lambda: self.eliot_logger.flushTracebacks(UnrecoverableFileError)
)
d = DeferredContext(self.create_invite_join_magic_folder(self.alice_nickname, self.local_dir))
d.addCallback(self._restart_client)
# note: _restart_client ultimately sets self.magicfolder to not-None