Skip to content

Commit

Permalink
Rename execDetailCfgCardanoCLI to execDetailConfigCardanoCLI
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Sep 19, 2024
1 parent 198dcbc commit 09affb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Test.Cardano.CLI.Util
, equivalence
, execCardanoCLI
, execDetailCardanoCLI
, execDetailCfgCardanoCLI
, execDetailConfigCardanoCLI
, tryExecCardanoCLI
, propertyOnce
, withSnd
Expand Down Expand Up @@ -83,20 +83,20 @@ execDetailCardanoCLI
-- ^ Arguments to the CLI command
-> m (IO.ExitCode, String, String)
-- ^ Captured stdout
execDetailCardanoCLI params = GHC.withFrozenCallStack $ execDetailCfgCardanoCLI H.defaultExecConfig params
execDetailCardanoCLI params = GHC.withFrozenCallStack $ execDetailConfigCardanoCLI H.defaultExecConfig params

-- | Execute cardano-cli via the command line, expecting it to fail, and accepting custom config.
--
-- Waits for the process to finish and returns the exit code, stdout and stderr.
execDetailCfgCardanoCLI
execDetailConfigCardanoCLI
:: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack)
=> ExecConfig
-- ^ Configuration for the execution
-> [String]
-- ^ Arguments to the CLI command
-> m (IO.ExitCode, String, String)
-- ^ Captured stdout
execDetailCfgCardanoCLI cfg = GHC.withFrozenCallStack $ execDetailFlex cfg "cardano-cli" "CARDANO_CLI"
execDetailConfigCardanoCLI cfg = GHC.withFrozenCallStack $ execDetailFlex cfg "cardano-cli" "CARDANO_CLI"

procFlex'
:: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack)
Expand Down
2 changes: 1 addition & 1 deletion cardano-cli/test/cardano-cli-test/Test/Cli/Hash.hs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ hprop_check_anchor_data_hash_from_ipfs_uri =
( \port -> do
env <- H.evalIO getEnvironment
result <-
execDetailCfgCardanoCLI
execDetailConfigCardanoCLI
H.defaultExecConfig
{ H.execConfigEnv =
Last $
Expand Down

0 comments on commit 09affb6

Please sign in to comment.