From 20150541a71872d98e5f78096f382b5432236a16 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 18 Mar 2019 15:27:38 -0400 Subject: [PATCH] put the _perform_scan into an eliot action --- src/allmydata/test/test_magic_folder.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index a0babb957..283b4848b 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -1084,15 +1084,16 @@ class MagicFolderAliceBobTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, Rea # now, we ONLY want to do the scan, not a full iteration of # the process loop. So we do just the scan part "by hand" in # Bob's downloader - yield self.bob_magicfolder.downloader._perform_scan() - # while we're delving into internals, I guess we might as well - # confirm that we did queue up an item to download - self.assertEqual(1, len(self.bob_magicfolder.downloader._deque)) # break all the servers so the download fails. the count is 2 # because the "full iteration" will do a scan (downloading the # metadata file) and then process the deque (trying to # download the item we queued up already) + with start_action(action_type=u"test:perform-scan"): + yield self.bob_magicfolder.downloader._perform_scan() + # while we're delving into internals, I guess we might as well + # confirm that we did queue up an item to download + self.assertEqual(1, len(self.bob_magicfolder.downloader._deque)) for server_id in self.g.get_all_serverids(): self.g.break_server(server_id, count=2)