Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder asserts in TransactionExecTest #2124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/unit/Chainweb/Test/Pact5/TransactionExecTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ applyCmdCoinTransfer rdb = readFromAfterGenesis v rdb $ do
e <- applyCmd logger (Just logger) pactDb txCtx (TxBlockIdx 0) noSPVSupport (Gas 1) (view payloadObj <$> cmd)
e & P.match _Right
? P.checkAll
[ P.fun _crEvents ? P.list
[ P.fun _crResult ? P.equals ? PactResultOk (PString "Write succeeded")
, P.fun _crEvents ? P.list
-- transfer event and gas redeem event
[ event
(P.equals "TRANSFER")
Expand All @@ -700,7 +701,6 @@ applyCmdCoinTransfer rdb = readFromAfterGenesis v rdb $ do
(P.equals [PString "sender00", PString "NoMiner", PDecimal 22.7])
(P.equals coinModuleName)
]
, P.fun _crResult ? P.equals ? PactResultOk (PString "Write succeeded")
-- reflects buyGas gas usage, as well as that of the payload
, P.fun _crGas ? P.equals ? Gas expectedGasConsumed
, P.fun _crContinuation ? P.equals ? Nothing
Expand Down
Loading