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.
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
test(gossipsub): Topic Membership Tests #1201
base: master
Are you sure you want to change the base?
test(gossipsub): Topic Membership Tests #1201
Changes from 32 commits
871efab
dc7f8d4
5790b6f
eced002
1c2e221
2923a2d
fda0d2b
eb2f6bf
9c0966e
27c2850
25df50d
f0c8c5b
46b7125
19d3ead
f42a763
e10e4d0
89473da
806592d
2d38e8a
d594c04
a12b56c
cb7ccae
ff6b274
567a456
cc8e976
e68685c
44dd7d1
d80abe0
a7e80de
be818b9
a3c29ae
aa34c7f
df674d5
1bfdded
49ce782
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would check the
gossipsub.topics.len
againstgossipSubParams
, which is the limit you defined here. That would make the check accurate.Also, maybe it'd be interesting to connect the nodes and check for
mesh
andgossipsub
population.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between this case and the
handle SUBSCRIBE to the topic
one?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first test is primarily about verifying mesh behavior after joining.
The second test is broader and checks both mesh and gossipsub structures to ensure proper subscription handling.
In short, the second test provides a more thorough validation by checking both the mesh and gossipsub structures, while the first test is specifically focused on the mesh when peers join a topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you might be able to condense the two cases into one.
Are they two different cases in the test plans?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were 6 TC on documentation, and I followed the same.
Let me know if this is not required now will remove it