diff options
author | brunoerg <brunoely.gc@gmail.com> | 2024-03-20 18:52:26 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2024-03-26 10:57:40 -0300 |
commit | e30e8625bbc42045b8b757a8d7e80c20cc61cebf (patch) | |
tree | 72281b521935fc48b6f43cba0b951f53bd43e910 /test/functional/rpc_setban.py | |
parent | 71b63195b30b2fa0dff20ebb262ce7566dd5d673 (diff) | |
download | bitcoin-e30e8625bbc42045b8b757a8d7e80c20cc61cebf.tar.xz |
test: remove duplicated ban test
Test the ban list is preserved through restart has been
done by both `rpc_setban` and `p2p_disconnect_ban`.
Since `p2p_disconnect_ban` does it in a more elegant
way, we can keep only it and remove the duplicated one.
Diffstat (limited to 'test/functional/rpc_setban.py')
-rwxr-xr-x | test/functional/rpc_setban.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/functional/rpc_setban.py b/test/functional/rpc_setban.py index bc426d7371..ba86b278bd 100755 --- a/test/functional/rpc_setban.py +++ b/test/functional/rpc_setban.py @@ -64,20 +64,10 @@ class SetBanTests(BitcoinTestFramework): assert self.is_banned(node, tor_addr) assert not self.is_banned(node, ip_addr) - self.log.info("Test the ban list is preserved through restart") - - self.restart_node(1) - assert self.is_banned(node, tor_addr) - assert not self.is_banned(node, ip_addr) - node.setban(tor_addr, "remove") assert not self.is_banned(self.nodes[1], tor_addr) assert not self.is_banned(node, ip_addr) - self.restart_node(1) - assert not self.is_banned(node, tor_addr) - assert not self.is_banned(node, ip_addr) - self.log.info("Test -bantime") self.restart_node(1, ["-bantime=1234"]) self.nodes[1].setban("127.0.0.1", "add") |