From 6b40c54a30f98d2b62b4f9079b0387e8e5d61aa9 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Sat, 18 Apr 2015 04:50:54 +0100 Subject: [PATCH] Add stats counter checking to uploader service start test --- src/allmydata/test/test_drop_upload.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index c174a90a..7f3a770d 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -63,9 +63,13 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA self.uploader = None self.set_up_grid() self.client = self.g.clients[0] + self.stats_provider = self.client.stats_provider + d = self.client.create_dirnode() d.addCallback(self._made_upload_dir) + d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.dirs_monitored'), 1)) d.addBoth(self._cleanup) + d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.dirs_monitored'), 0)) return d def _test_move_tree(self): -- 2.45.2