From 238fec642d06c93641f1b159e50ae7cfdffc929e Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 9 Feb 2017 23:31:50 -0800 Subject: [PATCH] Update test to check for updated error messages in AmountFromValue(). --- qa/rpc-tests/wallet_protectcoinbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/rpc-tests/wallet_protectcoinbase.py b/qa/rpc-tests/wallet_protectcoinbase.py index fc543a6ef..7eefb8b9b 100755 --- a/qa/rpc-tests/wallet_protectcoinbase.py +++ b/qa/rpc-tests/wallet_protectcoinbase.py @@ -242,14 +242,14 @@ class WalletProtectCoinbaseTest (BitcoinTestFramework): self.nodes[0].z_sendmany(myzaddr, recipients, 1, -1) except JSONRPCException,e: errorString = e.error['message'] - assert_equal("Invalid amount" in errorString, True) + assert_equal("Amount out of range" in errorString, True) # Send will fail because fee is larger than MAX_MONEY try: self.nodes[0].z_sendmany(myzaddr, recipients, 1, Decimal('21000000.00000001')) except JSONRPCException,e: errorString = e.error['message'] - assert_equal("Invalid amount" in errorString, True) + assert_equal("Amount out of range" in errorString, True) # Send will fail because fee is larger than sum of outputs try: