Skip to content

Commit 77b222e

Browse files
committed
Try to use lower epochLength in leadership schedule test
1 parent 055520d commit 77b222e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/LeadershipSchedule.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import Testnet.Process.Run (execCli, execCli', mkExecConfig)
4343
import Testnet.Property.Assert
4444
import Testnet.Property.Util (decodeEraUTxO, integrationRetryWorkspace)
4545
import Testnet.Runtime
46+
import Testnet.Start.Types
4647
import Testnet.Types
4748

4849
import Hedgehog (Property, (===))
@@ -63,14 +64,15 @@ hprop_leadershipSchedule = integrationRetryWorkspace 0 "leadership-schedule" $ \
6364
sbe = shelleyBasedEra @ConwayEra -- TODO: We should only support the latest era and the upcoming era
6465
asbe = AnyShelleyBasedEra sbe
6566
cTestnetOptions = def { cardanoNodeEra = asbe }
67+
shelleyOptions = def { shelleyEpochLength = 200 }
6668
eraString = eraToString sbe
6769

6870
tr@TestnetRuntime
6971
{ testnetMagic
7072
, wallets=wallet0:_
7173
, configurationFile
7274
, poolNodes
73-
} <- cardanoTestnetDefault cTestnetOptions def conf
75+
} <- cardanoTestnetDefault cTestnetOptions shelleyOptions conf
7476

7577
node1sprocket <- H.headM $ poolSprockets tr
7678
execConfig <- mkExecConfig tempBaseAbsPath node1sprocket testnetMagic

0 commit comments

Comments
 (0)