Patch Downloader.REMOTE_SCAN_INTERVAL rather than setting it persistently.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
cbec939d86
commit
ee5245ed2c
|
@ -32,7 +32,7 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual
|
||||||
temp = self.mktemp()
|
temp = self.mktemp()
|
||||||
self.basedir = abspath_expanduser_unicode(temp.decode(get_filesystem_encoding()))
|
self.basedir = abspath_expanduser_unicode(temp.decode(get_filesystem_encoding()))
|
||||||
self.magicfolder = None
|
self.magicfolder = None
|
||||||
Downloader.REMOTE_SCAN_INTERVAL = 0
|
self.patch(Downloader, 'REMOTE_SCAN_INTERVAL', 0)
|
||||||
|
|
||||||
def _get_count(self, name, client=None):
|
def _get_count(self, name, client=None):
|
||||||
counters = (client or self.get_client()).stats_provider.get_stats()["counters"]
|
counters = (client or self.get_client()).stats_provider.get_stats()["counters"]
|
||||||
|
|
Loading…
Reference in New Issue