From 4ada26101bb16782b1af9501526e5cbf3e7fdc6e Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 19 Nov 2008 16:02:12 -0700 Subject: [PATCH] test_dirnode: add an explainError call --- src/allmydata/test/test_dirnode.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_dirnode.py b/src/allmydata/test/test_dirnode.py index 3e1c9729..cc2be476 100644 --- a/src/allmydata/test/test_dirnode.py +++ b/src/allmydata/test/test_dirnode.py @@ -12,7 +12,7 @@ from allmydata.interfaces import IURI, IClient, IMutableFileNode, \ from allmydata.util import hashutil from allmydata.monitor import Monitor from allmydata.test.common import make_chk_file_uri, make_mutable_file_uri, \ - FakeDirectoryNode, create_chk_filenode + FakeDirectoryNode, create_chk_filenode, ErrorMixin from allmydata.checker_results import CheckerResults, CheckAndRepairResults import common_util as testutil @@ -87,7 +87,8 @@ class FakeClient: return d -class Dirnode(unittest.TestCase, testutil.ShouldFailMixin, testutil.StallMixin): +class Dirnode(unittest.TestCase, + testutil.ShouldFailMixin, testutil.StallMixin, ErrorMixin): def setUp(self): self.client = FakeClient() @@ -700,6 +701,7 @@ class Dirnode(unittest.TestCase, testutil.ShouldFailMixin, testutil.StallMixin): d.addCallback(_then) + d.addErrback(self.explain_error) return d class DeepStats(unittest.TestCase): -- 2.45.2