Fix test_ignore_too_many_messages_in_ihave
test
#5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
sigp#5422
Issue Addressed
Test
test_ignore_too_many_messages_in_ihave
is failing in this branch:https://github.com/sigp/lighthouse/actions/runs/8796045770/job/24138172575
Here is the assertion that is failing:
lighthouse/beacon_node/lighthouse_network/gossipsub/src/behaviour/tests.rs
Line 4647 in 5946982
Proposed Changes
From my investigation, message-ids that are expected to send iwant are being filtered out here,
!self.gossip_promises.contains(id)
:lighthouse/beacon_node/lighthouse_network/gossipsub/src/behaviour.rs
Lines 1259 to 1266 in 0cc18cc
I think this was not intended for this test.
To avoid unexpected filtering, I have changed the test to use fresh message-ids (specifically,
message_ids[20..30]
).