Skip to content

Commit ca489c9

Browse files
committed
[Tests] Fix expected error messages
1 parent 9f84c52 commit ca489c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/functional/mining_pos_reorg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ def findUtxoInList(txid, vout, utxo_list):
168168
self.log.info("Balance for node 2 checks out.")
169169

170170
# Double spending txes not possible
171-
assert_raises_rpc_error(-26, "bad-txns-invalid-zpiv",
171+
assert_raises_rpc_error(-26, "bad-zc-spend-contextcheck",
172172
self.nodes[0].sendrawtransaction, tx_B0)
173-
assert_raises_rpc_error(-26, "bad-txns-invalid-zpiv",
173+
assert_raises_rpc_error(-26, "bad-zc-spend-contextcheck",
174174
self.nodes[0].sendrawtransaction, tx_B1)
175175

176176
# verify that the stakeinput can't be spent

test/functional/wallet_zerocoin_publicspends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def stake_4_blocks(block_time):
141141

142142
# 7) Try to relay old v3 spend now (serial_1)
143143
self.log.info("Trying to send old v3 spend now...")
144-
assert_raises_rpc_error(-26, "bad-txns-invalid-zpiv",
144+
assert_raises_rpc_error(-26, "bad-zc-spend-version",
145145
self.nodes[2].sendrawtransaction, old_spend_v3)
146146
self.log.info("GOOD: Old transaction not sent.")
147147

0 commit comments

Comments
 (0)