-
Notifications
You must be signed in to change notification settings - Fork 313
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
Add a test to verify MAX_SUBSCRIBED_TOPICS constant #9163
Add a test to verify MAX_SUBSCRIBED_TOPICS constant #9163
Conversation
I'd oppose this:
|
Ahh I see, you multiply by 3, but we have no guarantee that fork-1 has less topics. So it's just another place for a new bug |
What I think we could keep - test that highest fork + (fork-1) + (fork-2) topics is less than hardcoded number. So it will fail in future if we hardcode something not enough today. |
I like the idea of a test actually more! |
I like the test-only approach :) |
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.
LGTM
but if I turn on super-paranoid mode, I'd find max of all forks first and then multiply by 3.
842eb34
to
05c6ced
Compare
PR Description
Instead of hardcoding, we can compute
MAX_SUBSCRIBED_TOPICS
based on the highest supported milestone.Fixed Issue(s)
N/A
Documentation
doc-change-required
label to this PR if updates are required.Changelog