Skip to content

Commit

Permalink
cardano-testnet | Increase socket listen timeout when starting nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer authored and Jimbo4350 committed Sep 18, 2024
1 parent ac6e894 commit bab2e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cardano-testnet/src/Testnet/Runtime.hs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ startNode tp node ipv4 port testnetMagic nodeCmd = GHC.withFrozenCallStack $ do
-- Wait for socket to be created
eSprocketError <-
Ping.waitForSprocket
30 -- timeout
120 -- timeout
0.2 -- check interval
sprocket

Expand All @@ -188,7 +188,7 @@ startNode tp node ipv4 port testnetMagic nodeCmd = GHC.withFrozenCallStack $ do
firstExceptT
(\ioex ->
NodeExecutableError . hsep $
["Socket", pretty socketAbsPath, "was not created after 30 seconds. There was no output on stderr. Exception:", prettyException ioex])
["Socket", pretty socketAbsPath, "was not created after 120 seconds. There was no output on stderr. Exception:", prettyException ioex])
$ hoistEither eSprocketError

-- Ping node and fail on error
Expand Down

0 comments on commit bab2e4b

Please sign in to comment.