diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-11-27 14:50:23 -0800 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-11-27 14:54:55 -0800 |
commit | 3ebde2143aa98af213872b98b474d904e55056f7 (patch) | |
tree | 63097a57f64dfbc7ddb834b796c284927c1618a7 | |
parent | e2ff5e7b35d71195278d2a2ed9485f141de33d7a (diff) | |
download | bitcoin-3ebde2143aa98af213872b98b474d904e55056f7.tar.xz |
[test] Fix wait condition in disconnect_p2ps
MY_SUBVERSION is defined in messages.py as a byte string, but here we were
comparing this value to the value returned by the RPC. Convert to ensure the
types match.
-rwxr-xr-x | test/functional/test_framework/test_node.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index 046efe730e..0a5b7f551c 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -544,7 +544,7 @@ class TestNode(): def num_test_p2p_connections(self): """Return number of test framework p2p connections to the node.""" - return len([peer for peer in self.getpeerinfo() if peer['subver'] == MY_SUBVERSION]) + return len([peer for peer in self.getpeerinfo() if peer['subver'] == MY_SUBVERSION.decode("utf-8")]) def disconnect_p2ps(self): """Close all p2p connections to the node.""" |