File tree Expand file tree Collapse file tree 6 files changed +14
-45
lines changed
cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test Expand file tree Collapse file tree 6 files changed +14
-45
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,9 @@ hprop_leadershipSchedule = integrationRetryWorkspace 2 "babbage-leadership-sched
59
59
H. note_ SYS. os
60
60
conf@ Conf { tempAbsPath= tempAbsPath@ (TmpAbsolutePath work) } <- mkConf tempAbsBasePath'
61
61
let tempBaseAbsPath = makeTmpBaseAbsPath tempAbsPath
62
-
63
- let sbe = shelleyBasedEra @ BabbageEra
62
+ sbe = shelleyBasedEra @ BabbageEra
64
63
cTestnetOptions = cardanoDefaultTestnetOptions
65
- { cardanoNodes = cardanoDefaultTestnetNodeOptions
66
- , cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
67
- , cardanoActiveSlotsCoeff = 0.1
64
+ { cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
68
65
}
69
66
70
67
tr@ TestnetRuntime
Original file line number Diff line number Diff line change @@ -34,21 +34,13 @@ hprop_stakeSnapshot = integrationRetryWorkspace 2 "babbage-stake-snapshot" $ \te
34
34
H. note_ SYS. os
35
35
conf@ Conf { tempAbsPath } <- mkConf tempAbsBasePath'
36
36
let tempAbsPath' = unTmpAbsPath tempAbsPath
37
-
38
- let
39
- tempBaseAbsPath = makeTmpBaseAbsPath $ TmpAbsolutePath tempAbsPath'
40
- sbe = ShelleyBasedEraBabbage
41
- options = cardanoDefaultTestnetOptions
42
- { cardanoNodes = cardanoDefaultTestnetNodeOptions
43
- , cardanoSlotLength = 0.1
44
- , cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
45
- }
37
+ tempBaseAbsPath = makeTmpBaseAbsPath $ TmpAbsolutePath tempAbsPath'
46
38
47
39
TestnetRuntime
48
40
{ testnetMagic
49
41
, poolNodes
50
42
, configurationFile
51
- } <- cardanoTestnetDefault options conf
43
+ } <- cardanoTestnetDefault cardanoDefaultTestnetOptions conf
52
44
53
45
poolNode1 <- H. headM poolNodes
54
46
poolSprocket1 <- H. noteShow $ nodeSprocket $ poolRuntime poolNode1
Original file line number Diff line number Diff line change @@ -33,20 +33,13 @@ hprop_stakeSnapshot = integrationRetryWorkspace 2 "conway-stake-snapshot" $ \tem
33
33
H. note_ SYS. os
34
34
conf@ Conf { tempAbsPath } <- mkConf tempAbsBasePath'
35
35
let tempAbsPath' = unTmpAbsPath tempAbsPath
36
-
37
- let
38
- tempBaseAbsPath = makeTmpBaseAbsPath $ TmpAbsolutePath tempAbsPath'
39
- sbe = ShelleyBasedEraBabbage
40
- options = cardanoDefaultTestnetOptions
41
- { cardanoNodes = cardanoDefaultTestnetNodeOptions
42
- , cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
43
- }
36
+ tempBaseAbsPath = makeTmpBaseAbsPath $ TmpAbsolutePath tempAbsPath'
44
37
45
38
TestnetRuntime
46
39
{ testnetMagic
47
40
, poolNodes
48
41
, configurationFile
49
- } <- cardanoTestnetDefault options conf
42
+ } <- cardanoTestnetDefault cardanoDefaultTestnetOptions conf
50
43
51
44
poolNode1 <- H. headM poolNodes
52
45
poolSprocket1 <- H. noteShow $ nodeSprocket $ poolRuntime poolNode1
Original file line number Diff line number Diff line change @@ -59,9 +59,7 @@ hprop_kes_period_info = integrationRetryWorkspace 2 "kes-period-info" $ \tempAbs
59
59
sbe = ShelleyBasedEraBabbage
60
60
eraString = eraToString sbe
61
61
cTestnetOptions = cardanoDefaultTestnetOptions
62
- { cardanoNodes = cardanoDefaultTestnetNodeOptions
63
- , cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
64
- , cardanoActiveSlotsCoeff = 0.1
62
+ { cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
65
63
}
66
64
67
65
runTime@ TestnetRuntime
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ module Cardano.Testnet.Test.Cli.QuerySlotNumber
12
12
( hprop_querySlotNumber
13
13
) where
14
14
15
- import Cardano.Api
16
-
17
15
import Cardano.Ledger.Shelley.Genesis (fromNominalDiffTimeMicro )
18
16
import Cardano.Slotting.Slot
19
17
import Cardano.Testnet
@@ -42,17 +40,11 @@ hprop_querySlotNumber = integrationRetryWorkspace 2 "query-slot-number" $ \tempA
42
40
conf <- mkConf tempAbsBasePath'
43
41
44
42
let tempBaseAbsPath' = makeTmpBaseAbsPath $ tempAbsPath conf
45
- sbe = ShelleyBasedEraBabbage
46
- options = cardanoDefaultTestnetOptions
47
- { cardanoNodes = cardanoDefaultTestnetNodeOptions
48
- , cardanoSlotLength = 0.1
49
- , cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
50
- }
51
43
52
44
tr@ TestnetRuntime
53
45
{ testnetMagic
54
46
, poolNodes
55
- } <- cardanoTestnetDefault options conf
47
+ } <- cardanoTestnetDefault cardanoDefaultTestnetOptions conf
56
48
ShelleyGenesis {sgSlotLength, sgEpochLength} <- H. noteShowM $ shelleyGenesis tr
57
49
startTime <- H. noteShowM $ getStartTime tempAbsBasePath' tr
58
50
Original file line number Diff line number Diff line change @@ -52,16 +52,13 @@ hprop_transaction = integrationRetryWorkspace 0 "submit-api-babbage-transaction"
52
52
H. note_ SYS. os
53
53
conf@ Conf { tempAbsPath } <- mkConf tempAbsBasePath'
54
54
let tempAbsPath' = unTmpAbsPath tempAbsPath
55
- work <- H. createDirectoryIfMissing $ tempAbsPath' </> " work"
55
+ sbe = ShelleyBasedEraBabbage
56
+ tempBaseAbsPath = makeTmpBaseAbsPath $ TmpAbsolutePath tempAbsPath'
57
+ options = cardanoDefaultTestnetOptions
58
+ { cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
59
+ }
56
60
57
- let
58
- sbe = ShelleyBasedEraBabbage
59
- tempBaseAbsPath = makeTmpBaseAbsPath $ TmpAbsolutePath tempAbsPath'
60
- options = cardanoDefaultTestnetOptions
61
- { cardanoNodes = cardanoDefaultTestnetNodeOptions
62
- , cardanoSlotLength = 0.1
63
- , cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
64
- }
61
+ work <- H. createDirectoryIfMissing $ tempAbsPath' </> " work"
65
62
66
63
TestnetRuntime
67
64
{ configurationFile
You can’t perform that action at this time.
0 commit comments