Skip to content

Commit 83adc4f

Browse files
authored
Merge pull request #6451 from IntersectMBO/fix-shutdown-on-slotsynced
Try to improve stability of "Shutdown on SlotSynced" test
2 parents bd3e580 + e88b551 commit 83adc4f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Tests
2+
3+
- Adjusted slot length and active slots coefficient in "Shutdown on SlotSynced" test
4+

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Node/Shutdown.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,16 @@ hprop_shutdownOnSlotSynced = integrationRetryWorkspace 2 "shutdown-on-slot-synce
204204
conf <- mkConf tempAbsBasePath'
205205

206206
let maxSlot = 150
207-
slotLen = 0.01
207+
epochLength = 300
208+
slotLen = 0.1
208209
let fastTestnetOptions = def
209210
{ cardanoNodes =
210211
SpoNodeOptions ["--shutdown-on-slot-synced", show maxSlot] :| []
211212
}
212213
shelleyOptions = def
213-
{ genesisEpochLength = 300
214+
{ genesisEpochLength = epochLength
214215
, genesisSlotLength = slotLen
216+
, genesisActiveSlotsCoeff = 50.0 / fromIntegral epochLength
215217
}
216218
testnetRuntime <- createAndRunTestnet fastTestnetOptions shelleyOptions conf
217219
let allNodes = testnetNodes testnetRuntime

0 commit comments

Comments
 (0)