aboutsummaryrefslogtreecommitdiff
path: root/test/functional/multiwallet.py
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-09-07 17:40:25 -0400
committerRussell Yanofsky <russ@yanofsky.org>2017-10-04 03:07:01 -0400
commit4526d21e52aa94f12121fcf01047c04f82c4990a (patch)
tree559f64ddd8a073a84fefab0055966dd46565eed1 /test/functional/multiwallet.py
parent74182f235cd04dcac7a8b3e763bc9add549745e1 (diff)
Add test for multiwallet batch RPC calls
Tests bug reported in https://github.com/bitcoin/bitcoin/issues/11257
Diffstat (limited to 'test/functional/multiwallet.py')
-rwxr-xr-xtest/functional/multiwallet.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/multiwallet.py b/test/functional/multiwallet.py
index b4e15a3322..ec808e95cd 100755
--- a/test/functional/multiwallet.py
+++ b/test/functional/multiwallet.py
@@ -76,5 +76,9 @@ class MultiWalletTest(BitcoinTestFramework):
assert_equal(w2.getbalance(), 1)
assert_equal(w3.getbalance(), 2)
+ batch = w1.batch([w1.getblockchaininfo.get_request(), w1.getwalletinfo.get_request()])
+ assert_equal(batch[0]["result"]["chain"], "regtest")
+ assert_equal(batch[1]["result"]["walletname"], "w1")
+
if __name__ == '__main__':
MultiWalletTest().main()