Don't assume the result is immediately available

This commit is contained in:
Itamar Turner-Trauring 2023-10-16 13:25:30 -04:00
parent c6b4b9eb29
commit 7f53f40d76

View File

@ -424,7 +424,7 @@ class Check(GridTestMixin, CLITestMixin, unittest.TestCase):
def _stash_uri(n): def _stash_uri(n):
self.uriList.append(n.get_uri()) self.uriList.append(n.get_uri())
d.addCallback(_stash_uri) d.addCallback(_stash_uri)
d = c0.create_dirnode() d.addCallback(lambda _: c0.create_dirnode())
d.addCallback(_stash_uri) d.addCallback(_stash_uri)
d.addCallback(lambda ign: self.do_cli("check", self.uriList[0], self.uriList[1])) d.addCallback(lambda ign: self.do_cli("check", self.uriList[0], self.uriList[1]))