Skip to content

Commit 70f7012

Browse files
committed
Fix integration test cluster setup on windows
randomUnusedTCPPorts takes about 12 seconds to complete, causing the genesis start time to be missed.
1 parent 074cb46 commit 70f7012

File tree

1 file changed

+1
-1
lines changed
  • lib/shelley/src/Cardano/Wallet/Shelley

1 file changed

+1
-1
lines changed

lib/shelley/src/Cardano/Wallet/Shelley/Launch.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ withCluster
420420
withCluster tr severity poolConfigs dir onByron onFork onClusterStart =
421421
bracketTracer' tr "withCluster" $ do
422422
let poolCount = length poolConfigs
423-
systemStart <- addUTCTime 1 <$> getCurrentTime
424423
(port0:ports) <- randomUnusedTCPPorts (poolCount + 2)
424+
systemStart <- addUTCTime 1 <$> getCurrentTime
425425
let bftCfg = NodeParams severity systemStart (head $ rotate ports)
426426
withBFTNode tr dir bftCfg $ \bftSocket block0 params -> do
427427
let runningBftNode = RunningNode bftSocket block0 params

0 commit comments

Comments
 (0)