mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-01-11 08:05:44 +00:00
test: make the committed_blocks test more strict (#31)
This commit is contained in:
parent
630dd3ac5c
commit
a4d07256d6
@ -259,7 +259,6 @@ class TestCarnotUnhappyPath(TestCase):
|
|||||||
root_votes = succeed(self, overlay, nodes, proposed_block)
|
root_votes = succeed(self, overlay, nodes, proposed_block)
|
||||||
proposed_block = leader.propose_block(view, root_votes).payload
|
proposed_block = leader.propose_block(view, root_votes).payload
|
||||||
|
|
||||||
committed_blocks = [view for view in range(1, 11) if view not in (4, 5, 7, 8, 9, 10, 11, 12, 13)]
|
committed_blocks = {0, 1, 2, 3, 6, 9, 10, 11}
|
||||||
for node in nodes.values():
|
for node in nodes.values():
|
||||||
for view in committed_blocks:
|
self.assertEqual(committed_blocks, {block.view for block in node.committed_blocks().values()})
|
||||||
self.assertIn(view, [block.view for block in node.committed_blocks().values()])
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user