Skip to content

Commit

Permalink
Merge pull request #1395 from input-output-hk/disable-sanchonet-tests
Browse files Browse the repository at this point in the history
Disable sanchonet integration tests
  • Loading branch information
ch1bo authored Apr 16, 2024
2 parents b554d3d + d525ffc commit c5c192b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions hydra-cluster/src/HydraNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,16 @@ withHydraNode' tracer chainConfig workDir hydraNodeId hydraSKey hydraVKeys allNo
filepath <$ writeFileTextEnvelope (File filepath) Nothing vKey
let p =
( hydraNodeProcess $
-- NOTE: Using 0.0.0.0 over 127.0.0.1 will make the hydra-node
-- crash if it can't bind the interface and make tests fail more
-- obvious when e.g. a hydra-node instance is already running.
RunOptions
{ verbosity = Verbose "HydraNode"
, nodeId = NodeId $ show hydraNodeId
, host = "127.0.0.1"
, host = "0.0.0.0"
, port = fromIntegral $ 5_000 + hydraNodeId
, peers
, apiHost = "127.0.0.1"
, apiHost = "0.0.0.0"
, apiPort = fromIntegral $ 4_000 + hydraNodeId
, monitoringPort = Just $ fromIntegral $ 6_000 + hydraNodeId
, hydraSigningKey
Expand Down
4 changes: 3 additions & 1 deletion hydra-cluster/test/Test/CardanoNodeSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ spec = do

describe "findRunningCardanoNode" $ do
it "returns Nothing on non-matching network" $ \(tr, tmp) -> do
withCardanoNodeOnKnownNetwork tr tmp Sanchonet $ \_ -> do
withCardanoNodeOnKnownNetwork tr tmp Preview $ \_ -> do
findRunningCardanoNode tr tmp Preproduction `shouldReturn` Nothing

it "returns Just running node on matching network" $ \(tr, tmp) -> do
withCardanoNodeOnKnownNetwork tr tmp Preview $ \runningNode -> do
findRunningCardanoNode tr tmp Preview `shouldReturn` Just runningNode

forEachKnownNetwork "withCardanoNodeOnKnownNetwork starts synchronizing within 10 seconds" $ \network -> do
when (network == Sanchonet) $
pendingWith "cardano-node 8.9 not anymore supported on sanchonet"
-- NOTE: This implies that withCardanoNodeOnKnownNetwork does not
-- synchronize the whole chain before continuing.
setupTracerAndTempDir $ \(tr, tmp) ->
Expand Down

0 comments on commit c5c192b

Please sign in to comment.