Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IF: Test: Fix ship_streamer_test forking by using an explicit topo #2196

Merged
merged 6 commits into from
Feb 5, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Feb 3, 2024

Simplify ship_streamer_test by using a specific topo. See comments in the test for specifics of the setup.

Snapshot part of test depends on: #1558

Resolves #2172

@heifner heifner added the OCI Work exclusive to OCI team label Feb 3, 2024
@heifner heifner requested review from greg7mdp and linh2931 February 3, 2024 20:04
@@ -999,7 +999,7 @@ def activateInstantFinality(self, launcher, biosFinalizer, pnodes):
# call setfinalizer
numFins = 0
for n in launcher.network.nodes.values():
if n.keys[0].blspubkey is None:
if len(n.keys) == 0 or n.keys[0].blspubkey is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no big deal, but I think this is more idiomatic:

Suggested change
if len(n.keys) == 0 or n.keys[0].blspubkey is None:
if not n.keys or not n.keys[0].blspubkey:

@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: TEST
summary: Simplify ship_streamer_test by using a specific topo.
Note: end

@heifner heifner merged commit 746f022 into hotstuff_integration Feb 5, 2024
26 checks passed
@heifner heifner deleted the GH-2172-ship-streamer-test branch February 5, 2024 22:42
@heifner heifner linked an issue Feb 5, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IF: investigate and fix ship_streamer_if_test
4 participants