Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-iohk committed Nov 29, 2023
1 parent d5fc093 commit 4928b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hydra-node/exe/hydra-node/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Hydra.Cardano.Api (
import Hydra.Chain.Direct.ScriptRegistry (publishHydraScripts)
import Hydra.Chain.Direct.Util (readKeyPair)
import Hydra.Logging (Verbosity (..))
import Hydra.Node.Run (run, explain)
import Hydra.Node.Run (explain, run)
import Hydra.Options (
Command (GenHydraKey, Publish, Run),
PublishOptions (..),
Expand Down
10 changes: 3 additions & 7 deletions hydra-node/test/Hydra/Node/RunSpec.hs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
module Hydra.Node.RunSpec where

import Hydra.Node.Run (ConfigurationException)
import Hydra.Node.Run (ConfigurationException, run)
import Hydra.Options (ChainConfig (..), RunOptions (..), defaultRunOptions, genFilePath)
import Hydra.Prelude
import Test.Hydra.Prelude
import Hydra.Options (defaultRunOptions)
import Hydra.Node.Run (run)
import Hydra.Options (ChainConfig(..))
import Hydra.Options (RunOptions(..))
import Hydra.Options (genFilePath)
import Test.QuickCheck (generate)

spec :: Spec
Expand All @@ -16,7 +12,7 @@ spec =
cardanoKeys <- generate $ replicateM 1 (genFilePath "vk")
hydraVerificationKeys <- generate $ replicateM 2 (genFilePath "vk")
let chainConfiguration = (chainConfig defaultRunOptions){cardanoVerificationKeys = cardanoKeys}
options = defaultRunOptions { chainConfig = chainConfiguration, hydraVerificationKeys}
options = defaultRunOptions{chainConfig = chainConfiguration, hydraVerificationKeys}

run options `shouldThrow` aConfigurationException

Expand Down

0 comments on commit 4928b55

Please sign in to comment.