Skip to content

Commit 5697558

Browse files
committed
cardano-testnet: call the CLI check-node-configuration to catch configuration errors
This also happens to be a test of check-node-configuration :-)
1 parent 77efb66 commit 5697558

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cardano-testnet/src/Testnet/Start/Cardano.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ cardanoTestnet
275275
-- Add Byron, Shelley and Alonzo genesis hashes to node configuration
276276
config <- createConfigJson (TmpAbsolutePath tmpAbsPath) sbe
277277
H.evalIO $ LBS.writeFile (unFile configurationFile) config
278+
execCli_
279+
[ "debug", "check-node-configuration"
280+
, "--node-configuration-file", unFile configurationFile
281+
]
278282

279283
portNumbersWithNodeOptions <- forM cardanoNodes $ \nodeOption -> (nodeOption,) <$> H.randomPort testnetDefaultIpv4Address
280284
let portNumbers = snd <$> portNumbersWithNodeOptions

0 commit comments

Comments
 (0)