From: David Stainton Date: Sat, 18 Apr 2015 03:50:54 +0000 (+0100) Subject: Add stats counter checking to uploader service start test X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=022431c2d6eeb1792ebea3186c7fefca636578b2;p=tahoe-lafs%2Ftahoe-lafs.git Add stats counter checking to uploader service start test --- diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index 700ecec0..ab0c4bcf 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):