Skip to content

Commit 1b2eb11

Browse files
committed
Fix tests
1 parent a959c32 commit 1b2eb11

File tree

13 files changed

+1751
-78
lines changed

13 files changed

+1751
-78
lines changed

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/CommandLineArg/ForceIndex.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ checkForceIndexesArg =
1919
withCustomConfig commandLineForceIndexArgs Nothing babbageConfigDir testLabel $ \_ _ dbSyncEnv -> do
2020
startDBSync dbSyncEnv
2121
threadDelay 3_000_000
22-
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 169 "there wasn't the correct number of indexes"
22+
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 168 "there wasn't the correct number of indexes"
2323
where
2424
testLabel = "CLAcheckForceIndexesArg"
2525
commandLineForceIndexArgs =
@@ -32,7 +32,7 @@ checkNoForceIndexesArg =
3232
withCustomConfigAndDropDB commandLineNoForceIndexArgs Nothing babbageConfigDir testLabel $ \_ _ dbSyncEnv -> do
3333
startDBSync dbSyncEnv
3434
threadDelay 3_000_000
35-
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 104 "there wasn't the correct number of indexes"
35+
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 103 "there wasn't the correct number of indexes"
3636
where
3737
testLabel = "CLAcheckNoForceIndexesArg"
3838
commandLineNoForceIndexArgs =

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/CommandLineArg/ForceIndex.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ checkForceIndexesArg =
1717
startDBSync dbSync
1818

1919
-- Verify number of DB indexes
20-
assertEqQuery dbSync DB.queryPgIndexesCount 169 "unexpected number of indexes"
20+
assertEqQuery dbSync DB.queryPgIndexesCount 168 "unexpected number of indexes"
2121
where
2222
cliArgs = initCommandLineArgs {claForceIndexes = True}
2323
testLabel = "conwayCLACheckForceIndexesArg"
@@ -28,7 +28,7 @@ checkNoForceIndexesArg =
2828
startDBSync dbSync
2929

3030
-- Verify number of DB indexes
31-
assertEqQuery dbSync DB.queryPgIndexesCount 104 "unexpected number of indexes"
31+
assertEqQuery dbSync DB.queryPgIndexesCount 103 "unexpected number of indexes"
3232
where
3333
cliArgs = initCommandLineArgs {claForceIndexes = False}
3434
testLabel = "conwayCLACheckNoForceIndexesArg"
Lines changed: 249 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,278 @@
11
{
22
"poolVotingThresholds": {
3-
"committeeNormal": 0.60,
3+
"committeeNormal": 0.6,
44
"committeeNoConfidence": 0.51,
55
"hardForkInitiation": 0.51,
6-
"motionNoConfidence": 0.60,
7-
"ppSecurityGroup": 0.60
6+
"motionNoConfidence": 0.6,
7+
"ppSecurityGroup": 0.6
88
},
99
"dRepVotingThresholds": {
1010
"motionNoConfidence": 0.67,
1111
"committeeNormal": 0.67,
12-
"committeeNoConfidence": 0.60,
12+
"committeeNoConfidence": 0.6,
1313
"updateToConstitution": 0.75,
14-
"hardForkInitiation": 0.60,
14+
"hardForkInitiation": 0.6,
1515
"ppNetworkGroup": 0.67,
1616
"ppEconomicGroup": 0.67,
1717
"ppTechnicalGroup": 0.67,
1818
"ppGovGroup": 0.75,
1919
"treasuryWithdrawal": 0.67
2020
},
21-
"committeeMinSize": 7,
21+
"committeeMinSize": 3,
2222
"committeeMaxTermLength": 73,
23-
"govActionLifetime": 6,
23+
"govActionLifetime": 8,
2424
"govActionDeposit": 50000000000,
2525
"dRepDeposit": 500000000,
2626
"dRepActivity": 20,
2727
"minFeeRefScriptCostPerByte": 44,
28+
"plutusV3CostModel": [
29+
205665,
30+
812,
31+
1,
32+
1,
33+
1000,
34+
571,
35+
0,
36+
1,
37+
1000,
38+
24177,
39+
4,
40+
1,
41+
1000,
42+
32,
43+
117366,
44+
10475,
45+
4,
46+
23000,
47+
100,
48+
23000,
49+
100,
50+
23000,
51+
100,
52+
23000,
53+
100,
54+
23000,
55+
100,
56+
23000,
57+
100,
58+
100,
59+
100,
60+
23000,
61+
100,
62+
19537,
63+
32,
64+
175354,
65+
32,
66+
46417,
67+
4,
68+
221973,
69+
511,
70+
0,
71+
1,
72+
89141,
73+
32,
74+
497525,
75+
14068,
76+
4,
77+
2,
78+
196500,
79+
453240,
80+
220,
81+
0,
82+
1,
83+
1,
84+
1000,
85+
28662,
86+
4,
87+
2,
88+
245000,
89+
216773,
90+
62,
91+
1,
92+
1060367,
93+
12586,
94+
1,
95+
208512,
96+
421,
97+
1,
98+
187000,
99+
1000,
100+
52998,
101+
1,
102+
80436,
103+
32,
104+
43249,
105+
32,
106+
1000,
107+
32,
108+
80556,
109+
1,
110+
57667,
111+
4,
112+
1000,
113+
10,
114+
197145,
115+
156,
116+
1,
117+
197145,
118+
156,
119+
1,
120+
204924,
121+
473,
122+
1,
123+
208896,
124+
511,
125+
1,
126+
52467,
127+
32,
128+
64832,
129+
32,
130+
65493,
131+
32,
132+
22558,
133+
32,
134+
16563,
135+
32,
136+
76511,
137+
32,
138+
196500,
139+
453240,
140+
220,
141+
0,
142+
1,
143+
1,
144+
69522,
145+
11687,
146+
0,
147+
1,
148+
60091,
149+
32,
150+
196500,
151+
453240,
152+
220,
153+
0,
154+
1,
155+
1,
156+
196500,
157+
453240,
158+
220,
159+
0,
160+
1,
161+
1,
162+
1159724,
163+
392670,
164+
0,
165+
2,
166+
806990,
167+
30482,
168+
4,
169+
1927926,
170+
82523,
171+
4,
172+
265318,
173+
0,
174+
4,
175+
0,
176+
85931,
177+
32,
178+
205665,
179+
812,
180+
1,
181+
1,
182+
41182,
183+
32,
184+
212342,
185+
32,
186+
31220,
187+
32,
188+
32696,
189+
32,
190+
43357,
191+
32,
192+
32247,
193+
32,
194+
38314,
195+
32,
196+
35190005,
197+
10,
198+
57996947,
199+
18975,
200+
10,
201+
39121781,
202+
32260,
203+
10,
204+
23000,
205+
100,
206+
23000,
207+
100,
208+
832808,
209+
18,
210+
3209094,
211+
6,
212+
331451,
213+
1,
214+
65990684,
215+
23097,
216+
18,
217+
114242,
218+
18,
219+
94393407,
220+
87060,
221+
18,
222+
16420089,
223+
18,
224+
2145798,
225+
36,
226+
3795345,
227+
12,
228+
889023,
229+
1,
230+
204237282,
231+
23271,
232+
36,
233+
129165,
234+
36,
235+
189977790,
236+
85902,
237+
36,
238+
33012864,
239+
36,
240+
388443360,
241+
1,
242+
401885761,
243+
72,
244+
2331379,
245+
72,
246+
1927926,
247+
82523,
248+
4,
249+
117366,
250+
10475,
251+
4,
252+
1292075,
253+
24469,
254+
74,
255+
0,
256+
1,
257+
936157,
258+
49601,
259+
237,
260+
0,
261+
1
262+
],
28263
"constitution": {
29264
"anchor": {
30-
"url": "",
31-
"dataHash": "0000000000000000000000000000000000000000000000000000000000000000"
265+
"url": "https://raw.githubusercontent.com/carloslodelar/proposals/main/constitution.txt",
266+
"dataHash": "f89cc2469ce31c3dfda2f3e0b56c5c8b4ee4f0e5f66c30a3f12a95298b01179e"
32267
}
33268
},
34269
"committee": {
35270
"members": {
271+
"scriptHash-8fc13431159fdda66347a38c55105d50d77d67abc1c368b876d52ad1": 336,
272+
"scriptHash-921e1ccb4812c4280510c9ccab81c561f3d413e7d744d48d61215d1f": 400,
273+
"scriptHash-d5d09d9380cf9dcde1f3c6cd88b08ca9e00a3d550022ca7ee4026342": 400,
274+
"scriptHash-2c698e41831684b16477fb50082b0c0e396d436504e39037d5366582": 400
36275
},
37-
"threshold": 0.67
276+
"threshold": 0.66
38277
}
39278
}

0 commit comments

Comments
 (0)