Skip to content

Commit

Permalink
Adjust TRANS_NEW_BALANCE_02b expected err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Feb 22, 2022
1 parent 16f3420 commit ca83c55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module Test.Integration.Framework.TestData
, errMsg400WalletIdEncoding
, errMsg400StartTimeLaterThanEndTime
, errMsg403Fee
, errMsg403MinimizeFee
, errMsg403Collateral
, errMsg403NotAByronWallet
, errMsg403NotAnIcarusWallet
Expand Down Expand Up @@ -322,6 +323,11 @@ errMsg403Fee =
\available to pay for the fee and also pay for the minimum ada quantities \
\of all change outputs."

errMsg403MinimizeFee :: String
errMsg403MinimizeFee =
"I cannot minimize fees because I cannot construct a change \
\output. Try ensuring the wallet has at least a couple of ada."

errMsg403Collateral :: String
errMsg403Collateral =
"I'm unable to create this transaction because the balance of pure ada \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ import Test.Integration.Framework.TestData
, errMsg403ForeignTransaction
, errMsg403InvalidConstructTx
, errMsg403MinUTxOValue
, errMsg403MinimizeFee
, errMsg403MissingWitsInTransaction
, errMsg403MultiaccountTransaction
, errMsg403MultidelegationTransaction
Expand Down Expand Up @@ -1645,13 +1646,13 @@ spec = describe "NEW_SHELLEY_TRANSACTIONS" $ do

it "TRANS_NEW_BALANCE_02b - Cannot balance when I cannot afford fee" $
\ctx -> runResourceT $ do
wa <- fixtureWalletWith @n ctx [3_300_000]
wa <- fixtureWalletWith @n ctx [2_500_000]
let balancePayload = Json PlutusScenario.pingPong_1
rTx <- request @ApiSerialisedTransaction ctx
(Link.balanceTransaction @'Shelley wa) Default balancePayload
verify rTx
[ expectResponseCode HTTP.status403
, expectErrorMessage errMsg403Fee
, expectErrorMessage errMsg403MinimizeFee
]

it "TRANS_NEW_BALANCE_02c - \
Expand Down

0 comments on commit ca83c55

Please sign in to comment.