aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authordarosior <darosior@protonmail.com>2019-05-16 23:01:00 +0200
committerdarosior <darosior@protonmail.com>2019-05-16 23:01:00 +0200
commit8a6810d0d2759c69f63b53c48aa79e0cfdd88ffb (patch)
treedb61adc3ef90d7e338c10860356bebfdebfdde13 /test/functional
parent8f2f17f79a10ab3db13f95291d302f5eae3e3a91 (diff)
Add a 'logpath' field to getrpcinfo
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/interface_rpc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/interface_rpc.py b/test/functional/interface_rpc.py
index 49ae0fb1a9..e99fa22646 100755
--- a/test/functional/interface_rpc.py
+++ b/test/functional/interface_rpc.py
@@ -4,6 +4,7 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Tests some generic aspects of the RPC interface."""
+import os
from test_framework.authproxy import JSONRPCException
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, assert_greater_than_or_equal
@@ -31,6 +32,7 @@ class RPCInterfaceTest(BitcoinTestFramework):
command = info['active_commands'][0]
assert_equal(command['method'], 'getrpcinfo')
assert_greater_than_or_equal(command['duration'], 0)
+ assert_equal(info['logpath'], os.path.join(self.nodes[0].datadir, 'regtest', 'debug.log'))
def test_batch_request(self):
self.log.info("Testing basic JSON-RPC batch request...")