diff options
author | John Newbery <john@johnnewbery.com> | 2018-10-07 09:30:45 +0900 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-10-07 09:32:50 +0900 |
commit | 42a995ae4819ea472b211eb5088727a422fcbeb8 (patch) | |
tree | c45be4914e51ce737404e8537eb318cd09738634 /test/functional/rpc_zmq.py | |
parent | f504a1402afd0760e9d348ecc8bad0094aa7d705 (diff) | |
download | bitcoin-42a995ae4819ea472b211eb5088727a422fcbeb8.tar.xz |
[tests] Remove rpc_zmq.py
rpc_zmq.py is racy and fails intermittently. Remove that test file and
move the getzmqnotifications RPC test into interface_zmq.py
Diffstat (limited to 'test/functional/rpc_zmq.py')
-rwxr-xr-x | test/functional/rpc_zmq.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/functional/rpc_zmq.py b/test/functional/rpc_zmq.py deleted file mode 100755 index bfa6b06f67..0000000000 --- a/test/functional/rpc_zmq.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python3 -# Copyright (c) 2018 The Bitcoin Core developers -# Distributed under the MIT software license, see the accompanying -# file COPYING or http://www.opensource.org/licenses/mit-license.php. -"""Test for the ZMQ RPC methods.""" - -from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import assert_equal - - -class RPCZMQTest(BitcoinTestFramework): - - address = "tcp://127.0.0.1:28332" - - def set_test_params(self): - self.num_nodes = 1 - self.setup_clean_chain = True - - def skip_test_if_missing_module(self): - self.skip_if_no_py3_zmq() - self.skip_if_no_bitcoind_zmq() - - def run_test(self): - self._test_getzmqnotifications() - - def _test_getzmqnotifications(self): - self.restart_node(0, extra_args=[]) - assert_equal(self.nodes[0].getzmqnotifications(), []) - - self.restart_node(0, extra_args=["-zmqpubhashtx=%s" % self.address]) - assert_equal(self.nodes[0].getzmqnotifications(), [ - {"type": "pubhashtx", "address": self.address}, - ]) - - -if __name__ == '__main__': - RPCZMQTest().main() |