mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +02:00
multiprocess: Add echoipc RPC method and test
Add simple interfaces::Echo IPC interface with one method that just takes and returns a string, to test multiprocess framework and provide an example of how it can be used to spawn and call between processes.
This commit is contained in:
@@ -61,6 +61,9 @@ class RpcMiscTest(BitcoinTestFramework):
|
||||
node.logging(include=['qt'])
|
||||
assert_equal(node.logging()['qt'], True)
|
||||
|
||||
self.log.info("test echoipc (testing spawned process in multiprocess build)")
|
||||
assert_equal(node.echoipc("hello"), "hello")
|
||||
|
||||
self.log.info("test getindexinfo")
|
||||
# Without any indices running the RPC returns an empty object
|
||||
assert_equal(node.getindexinfo(), {})
|
||||
|
Reference in New Issue
Block a user