From 570181bddc5467764277cb4e70948016c53eab13 Mon Sep 17 00:00:00 2001 From: danielsanchezq Date: Wed, 12 Apr 2023 16:20:59 +0200 Subject: [PATCH] Add block assertions on mixed unhappy test --- carnot/test_unhappy_path.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/carnot/test_unhappy_path.py b/carnot/test_unhappy_path.py index 724ef16..a5e9ce1 100644 --- a/carnot/test_unhappy_path.py +++ b/carnot/test_unhappy_path.py @@ -268,3 +268,8 @@ class TestCarnotUnhappyPath(TestCase): root_votes = succeed(self, overlay, nodes, proposed_block) leader.propose_block(view, root_votes) proposed_block = leader.latest_event + + committed_blocks = [view for view in range(1, 11) if view not in (4, 7)] + for node in nodes.values(): + for view in committed_blocks: + self.assertIn(view, [block.view for block in node.committed_blocks.values()])