Skip to content

Conversation

@brunoerg
Copy link
Contributor

There are tests related to banning in both p2p_disconnect_ban and rpc_setban, some of them are testing same scenarios. So, this PR moves all banning test stuff to rpc_setban and leaves p2p_disconnect_ban only for disconnecting stuff. Since p2p_disconnect_ban doesn't have any banning stuff, this PR also renames that to p2p_disconnect.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 10, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #29483 (test, ci: add --v1transport option, add --v2transport to a CI task by mzumsande)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@DrahtBot DrahtBot added the Tests label Jan 10, 2023
@brunoerg
Copy link
Contributor Author

cc: @andrewtoth (#26822 (review))

@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from 85ddb92 to c2661db Compare January 10, 2023 13:32
@brunoerg brunoerg marked this pull request as ready for review January 10, 2023 13:51
@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from c2661db to c248b79 Compare January 10, 2023 20:05
@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from c248b79 to aba0427 Compare January 17, 2023 13:18
@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from aba0427 to 1ff6ed2 Compare February 7, 2023 20:35
@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from 1ff6ed2 to c7397de Compare February 20, 2023 18:24
@achow101 achow101 requested a review from maflcko April 25, 2023 16:28
@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from c7397de to b093dd7 Compare April 27, 2023 12:47
@brunoerg
Copy link
Contributor Author

Rebased

@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from b093dd7 to ab8be68 Compare May 1, 2023 22:28
@brunoerg
Copy link
Contributor Author

brunoerg commented May 1, 2023

Rebased

Sometimes both ones are testing same stuff related to banning, it makes sense to merge them to avoid repetition.
@brunoerg brunoerg force-pushed the 2023-01-merge-ban-test branch from 8bdfbcf to 682ba54 Compare February 13, 2024 21:46
@brunoerg
Copy link
Contributor Author

Rebased

@glozow
Copy link
Member

glozow commented Feb 16, 2024

Since there doesn't seem to be very much review interest... is there any benefit in moving these tests to a different file?

@brunoerg
Copy link
Contributor Author

Since there doesn't seem to be very much review interest... is there any benefit in moving these tests to a different file?

Currently, there are stuff that are being test in both p2p_disconnect_ban and rpc_setban (e.g. "Test the ban list is preserved through restart" in setban and "setban: test persistence across node restart" in p2p_disconnect_ban). Since we have a specific test for setban RPC, the idea is concentrate everything about it there.

@DrahtBot
Copy link
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

@brunoerg
Copy link
Contributor Author

I'll close for now and work in a simpler alternative.

@brunoerg brunoerg closed this Mar 20, 2024
@bitcoin bitcoin locked and limited conversation to collaborators Mar 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants