Skip to content

Commit

Permalink
Change wording in draftTx dummy handle
Browse files Browse the repository at this point in the history
  • Loading branch information
v0d1ch authored and ffakenz committed May 25, 2023
1 parent 6a99648 commit 7c280fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hydra-node/test/Hydra/BehaviorSpec.hs
Expand Up @@ -595,7 +595,7 @@ simulatedChainAndNetwork initialChainState = do
atomically $ modifyTVar nodes (node :)
pure $
node
{ oc = Chain{postTx = postTx nodes history chainStateVar, draftTx = \_ -> pure $ Left (FailedToDraftTx "oops")}
{ oc = Chain{postTx = postTx nodes history chainStateVar, draftTx = \_ -> pure $ Left (FailedToDraftTx "draftTx handle not implemented")}
, hn = createMockNetwork node nodes
}
, tickThread
Expand Down Expand Up @@ -757,7 +757,7 @@ createHydraNode ledger nodeState signingKey otherParties outputs outputHistory c
, hn = Network{broadcast = \_ -> pure ()}
, nodeState
, ledger
, oc = Chain{postTx = \_ -> pure (), draftTx = \_ -> pure $ Left (FailedToDraftTx "oops")}
, oc = Chain{postTx = \_ -> pure (), draftTx = \_ -> pure $ Left (FailedToDraftTx "draftTx handle not implemented")}
, server =
Server
{ sendOutput = \out -> atomically $ do
Expand Down
2 changes: 1 addition & 1 deletion hydra-node/test/Hydra/NodeSpec.hs
Expand Up @@ -170,7 +170,7 @@ createHydraNode signingKey otherParties contestationPeriod events = do
{ eq
, hn = Network{broadcast = \_ -> pure ()}
, nodeState
, oc = Chain{postTx = \_ -> pure (), draftTx = \_ -> pure $ Left (FailedToDraftTx "error")}
, oc = Chain{postTx = \_ -> pure (), draftTx = \_ -> pure $ Left (FailedToDraftTx "draftTx handle not implemented")}
, server = Server{sendOutput = \_ -> pure ()}
, ledger = simpleLedger
, env =
Expand Down

0 comments on commit 7c280fd

Please sign in to comment.