diff options
author | brunoerg <brunoely.gc@gmail.com> | 2021-10-28 09:42:13 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2021-11-18 13:40:43 -0300 |
commit | 988024fe37fe00c2deff28e44593e330aa6191f4 (patch) | |
tree | 8f4303901cfbfa0de4931890f1d4f03796dae1cb /test/functional/p2p_add_connections.py | |
parent | 2efc8c0999a4b99cfe3076f7312806e83e778261 (diff) | |
download | bitcoin-988024fe37fe00c2deff28e44593e330aa6191f4.tar.xz |
test: add check_node_connections in util
Diffstat (limited to 'test/functional/p2p_add_connections.py')
-rwxr-xr-x | test/functional/p2p_add_connections.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/functional/p2p_add_connections.py b/test/functional/p2p_add_connections.py index a04ba5db2d..b86502dc85 100755 --- a/test/functional/p2p_add_connections.py +++ b/test/functional/p2p_add_connections.py @@ -6,13 +6,7 @@ from test_framework.p2p import P2PInterface from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import assert_equal - - -def check_node_connections(*, node, num_in, num_out): - info = node.getnetworkinfo() - assert_equal(info["connections_in"], num_in) - assert_equal(info["connections_out"], num_out) +from test_framework.util import check_node_connections class P2PAddConnections(BitcoinTestFramework): |