Skip to content

Commit c0c652c

Browse files
committed
Add test for multiwallet batch RPC calls
Tests bug reported in #11257
1 parent 9fb44e8 commit c0c652c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/multiwallet.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,9 @@ def run_test(self):
7474
assert_equal(w2.getbalance(), 1)
7575
assert_equal(w3.getbalance(), 2)
7676

77+
batch = w1._batch([w1.getblockchaininfo._call(), w1.getwalletinfo._call()])
78+
assert_equal(batch[0]["result"]["chain"], "regtest")
79+
assert_equal(batch[1]["result"]["walletname"], "w1")
80+
7781
if __name__ == '__main__':
7882
MultiWalletTest().main()

0 commit comments

Comments
 (0)