mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
test_dirnode: add an explainError call
This commit is contained in:
parent
b84c2c6541
commit
4ada26101b
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user