aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-09-23 14:45:51 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-10-18 17:19:36 -0400
commitfaeb6665362e35f573ad715ade0ef2db62d71839 (patch)
tree45850a75344361ee5537510375d363e9367d00ab /test
parent0ff7cd7d0c074448db636bcc73e7879b7e4b21ec (diff)
util: Add CHECK_NONFATAL and use it in src/rpc
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/rpc_misc.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/rpc_misc.py b/test/functional/rpc_misc.py
index 8a3f8c6f06..3da9f05ca5 100755
--- a/test/functional/rpc_misc.py
+++ b/test/functional/rpc_misc.py
@@ -23,6 +23,13 @@ class RpcMiscTest(BitcoinTestFramework):
def run_test(self):
node = self.nodes[0]
+ self.log.info("test CHECK_NONFATAL")
+ assert_raises_rpc_error(
+ -1,
+ "Internal bug detected: 'request.params.size() != 100'",
+ lambda: node.echo(*[0] * 100),
+ )
+
self.log.info("test getmemoryinfo")
memory = node.getmemoryinfo()['locked']
assert_greater_than(memory['used'], 0)