util: Add CHECK_NONFATAL and use it in src/rpc

This commit is contained in:
MarcoFalke committed 2019-10-18 17:19:36 -04:00
1 parent 0ff7cd7d0c
commit faeb666536
6 files changed
+63 -10

No files matched your search

+7
View File
@@ -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)