aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-09-07 17:40:25 -0400
committerMarcoFalke <falke.marco@gmail.com>2017-11-03 10:07:59 -0400
commit3a6cdd459c03b15c35091b3cd66a203ed549f6cc (patch)
treeec83c85ffa6486f696669f7cbf992a2292c3e9c9
parent1c8c7f8af926175896cfd0d0e8b8b8663f863505 (diff)
downloadbitcoin-3a6cdd459c03b15c35091b3cd66a203ed549f6cc.tar.xz
Add test for multiwallet batch RPC calls
Tests bug reported in https://github.com/bitcoin/bitcoin/issues/11257 Github-Pull: #11277 Rebased-From: 4526d21e52aa94f12121fcf01047c04f82c4990a
-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 ba6b659ddc..7a0fbce477 100755
--- a/test/functional/multiwallet.py
+++ b/test/functional/multiwallet.py
@@ -82,5 +82,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()