diff options
author | John Newbery <john@johnnewbery.com> | 2017-06-02 14:30:36 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-08-15 13:12:15 -0400 |
commit | 7897338918dac072e788b8ab2919d4559f311bef (patch) | |
tree | e514317914448eaf783a2b5b980ba9339895bbdb /test/functional/getblocktemplate_longpoll.py | |
parent | e526ca6284b9e13be1b912b80dd73a34e739b539 (diff) | |
download | bitcoin-7897338918dac072e788b8ab2919d4559f311bef.tar.xz |
[tests] Introduce TestNode
TestNode is a class responsible for all state related to a bitcoind node
under test. It stores local state, is responsible for tracking the
bitcoind process and delegates unrecognised messages to the RPC
connection.
This commit changes start_nodes and stop_nodes to start and stop the
bitcoind nodes in parallel, making test setup and teardown much faster.
Diffstat (limited to 'test/functional/getblocktemplate_longpoll.py')
-rwxr-xr-x | test/functional/getblocktemplate_longpoll.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/getblocktemplate_longpoll.py b/test/functional/getblocktemplate_longpoll.py index bbe1dda5f7..cca30e2688 100755 --- a/test/functional/getblocktemplate_longpoll.py +++ b/test/functional/getblocktemplate_longpoll.py @@ -17,7 +17,7 @@ class LongpollThread(threading.Thread): self.longpollid = templat['longpollid'] # create a new connection to the node, we can't use the same # connection from two threads - self.node = get_rpc_proxy(node.url, 1, timeout=600) + self.node = get_rpc_proxy(node.url, 1, timeout=600, coveragedir=node.coverage_dir) def run(self): self.node.getblocktemplate({'longpollid':self.longpollid}) |