Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed May 17, 2023
1 parent 0658f40 commit 517e396
Show file tree
Hide file tree
Showing 32 changed files with 38 additions and 40 deletions.
10 changes: 5 additions & 5 deletions cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Alonzo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ unitTests iom knownMigrations =
, test "Mir Cert" mirReward
, test "Mir rollback" mirRewardRollback
, test "Mir Cert deregistration" mirRewardDereg
, test "test rewards empty last part of epoch" rewardsEmptyChainLast
, -- , test "test delta rewards" rewardsDelta -- See the same test on Babbage for the reason it was disabled.
test "rollback on epoch boundary" rollbackBoundary
-- , test "test rewards empty last part of epoch" rewardsEmptyChainLast
-- , test "test delta rewards" rewardsDelta -- See the same test on Babbage for the reason it was disabled.
, test "rollback on epoch boundary" rollbackBoundary
, test "single MIR Cert multiple outputs" singleMIRCertMultiOut
]
, testGroup
Expand Down Expand Up @@ -693,8 +693,8 @@ mirRewardDereg =
where
testLabel = "mirRewardDereg-alonzo"

rewardsEmptyChainLast :: IOManager -> [(Text, Text)] -> Assertion
rewardsEmptyChainLast =
_rewardsEmptyChainLast :: IOManager -> [(Text, Text)] -> Assertion
_rewardsEmptyChainLast =
withFullConfig alonzoConfigDir testLabel $ \interpreter mockServer dbSync -> do
startDBSync dbSync
void $ registerAllStakeCreds interpreter mockServer
Expand Down
10 changes: 5 additions & 5 deletions cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ unitTests iom knownMigrations =
, -- , test "Mir rollback" mirRewardRollback
test "Mir Cert Shelley" mirRewardShelley
, test "Mir Cert deregistration" mirRewardDereg
, test "test rewards empty last part of epoch" rewardsEmptyChainLast
, -- , test "test delta rewards" rewardsDelta -- We disable the test. See in the test for more.
test "rollback on epoch boundary" rollbackBoundary
-- , test "test rewards empty last part of epoch" rewardsEmptyChainLast
-- , test "test delta rewards" rewardsDelta -- We disable the test. See in the test for more.
, test "rollback on epoch boundary" rollbackBoundary
, test "single MIR Cert multiple outputs" singleMIRCertMultiOut
]
, testGroup
Expand Down Expand Up @@ -1137,8 +1137,8 @@ mirRewardDereg =
where
testLabel = "mirRewardDereg"

rewardsEmptyChainLast :: IOManager -> [(Text, Text)] -> Assertion
rewardsEmptyChainLast =
_rewardsEmptyChainLast :: IOManager -> [(Text, Text)] -> Assertion
_rewardsEmptyChainLast =
withFullConfig babbageConfig testLabel $ \interpreter mockServer dbSync -> do
startDBSync dbSync
void $ registerAllStakeCreds interpreter mockServer
Expand Down
2 changes: 1 addition & 1 deletion cardano-chain-gen/test/testfiles/fingerprint/bigChain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[1,3,11,31,42,44,61,62,76,93,95,102,104,123,149,170,171,190,201,209,227,260,265,272,284,294,296,305,306,318,331,345,347,348,350,375,382,401,411,424,428,471,487,489,492,512,523,526,528,529,537,551,568,573,604,607,615,636,649,672,681,682,698,703,706,708,714,737,768,781,787,801,848,852,857,864,876,899,920,949,957,980,993,999,1001,1010,1018,1020,1031,1035,1043,1055,1066,1075,1078,1080,1107,1127,1142,1148,1151,1184,1197,1207,1216,1232,1247,1256,1278,1316,1317,1326,1342,1348,1353,1383,1386,1396,1451,1462,1515,1552,1589,1606,1612,1616,1623,1629,1645,1661,1746,1775,1787,1831,1851,1872,1873,1895,1898,1900,1928,1932,1938,1993,1996,2009,2023,2055,2085,2087,2115,2204,2239,2254,2326,2344,2352,2356,2375,2426,2427,2429,2430,2431,2437,2556,2566,2596,2623,2628,2671,2683,2704,2732,2821,2876,2958,2976,3020,3025,3035,3061,3069,3072,3073,3100,3150,3155,3174,3241,3254,3265,3315,3353,3384,3417,3448,3464,3501,3504,3506,3511,3521,3522,3529,3536]
[1,3,11,31,42,44,61,62,76,93,95,102,104,123,149,170,171,190,201,209,227,260,265,272,284,294,296,305,306,318,331,345,347,348,350,375,382,401,411,424,428,471,487,489,492,512,523,526,528,529,537,551,568,573,604,607,615,636,649,672,681,682,698,703,706,708,714,737,768,781,787,801,848,852,857,864,876,899,920,949,957,980,993,999,1008,1010,1025,1043,1045,1058,1060,1080,1090,1091,1106,1111,1114,1131,1133,1135,1136,1140,1166,1195,1246,1253,1292,1303,1308,1338,1379,1427,1435,1441,1456,1473,1502,1511,1522,1528,1548,1571,1585,1593,1601,1605,1610,1628,1662,1669,1683,1725,1785,1849,1861,1872,1877,1884,1920,1925,1928,1947,1957,1973,1986,2013,2020,2078,2099,2106,2117,2123,2161,2214,2242,2249,2306,2350,2391,2414,2426,2436,2446,2467,2500,2506,2518,2540,2547,2637,2644,2660,2677,2686,2717,2729,2773,2778,2802,2861,2865,2873,2882,2918,2929,2933,2961,2996,3019,3059,3061,3075,3100,3105,3212,3219,3305,3356,3358,3377,3387,3396,3398,3401,3421,3424]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1005,1008]
[1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1000,1020]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1000,1001]
[3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1006,1008]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1001,1002]
[1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1002,1005]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1000,1002]
[3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1007,1008]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1005,1008,1013,1014,1022,1023,1031,1035,1044,1057,1070,1071,1072,1074,1076,1087,1089,1090,1093,1096,1101,1105,1107,1111,1112,1117,1122,1125,1126,1131,1133,1144,1152,1153,1161,1165,1171,1180,1181,1182,1185,1186,1193,1196,1198,1200,1206,1223,1225,1226,1230,1232,1233,1237,1238,1239,1245,1252,1254,1259,1264,1265,1271,1274,1276,1277,1284,1288,1294,1303,1310,1312,1316,1322,1325,1329,1344,1348,1352,1354,1359,1360,1363,1373,1375,1376,1393,1394,1396,1404,1408,1409,1414,1420,1422,1424,1425,1432,1437,1442,1444,1447,1456,1462,1463,1472,1477,1481,1485,1491,1494,1495,1497,1499,1500,1501,1503,1506,1532]
[1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1001,1002,1009,1010,1011,1021,1034,1038,1044,1046,1047,1050,1053,1057,1067,1070,1080,1093,1094,1096,1099,1105,1106,1110,1114,1119,1120,1124,1130,1131,1132,1134,1136,1143,1146,1151,1155,1161,1164,1174,1177,1185,1188,1192,1199,1206,1209,1210,1213,1229,1238,1243,1246,1249,1258,1259,1261,1267,1276,1281,1286,1312,1313,1317,1320,1323,1327,1328,1332,1335,1337,1342,1360,1366,1377,1379,1385,1388,1389,1392,1396,1397,1403,1428,1430,1431,1438,1439,1442,1457,1466,1469,1475,1476,1477,1481,1482,1491,1497,1499,1505,1506,1507,1525,1526]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1003,1008,1013,1026,1033,1034,1050,1052,1055,1064,1066,1071,1087,1088,1090,1097,1100,1107,1138,1139,1141,1143,1150,1151,1162,1166,1168,1173,1175,1177,1180,1182,1183,1185,1189,1190,1194,1203,1207,1209,1211,1215,1221,1227,1230,1247,1250,1254,1256,1257,1262,1263,1264,1267,1276,1281,1283,1287,1293,1304,1305,1308,1309,1313,1319,1320,1321,1322,1323,1326,1332,1334,1337,1339,1341,1344,1345,1348,1360,1366,1367,1375,1376,1379,1384,1400,1409,1411,1417,1434,1439,1440,1443,1451,1455,1457,1464,1466,1467,1468,1474,1485,1493,1494,1495,1501,1508,1511,1529,1535]
[3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1000,1007,1008,1014,1026,1027,1040,1043,1072,1075,1078,1086,1087,1088,1089,1090,1096,1097,1106,1111,1112,1116,1122,1124,1129,1131,1134,1144,1146,1150,1152,1153,1156,1167,1170,1176,1182,1185,1191,1198,1202,1213,1215,1218,1220,1221,1227,1233,1234,1235,1241,1242,1246,1248,1251,1257,1258,1270,1279,1285,1286,1290,1292,1300,1310,1312,1317,1321,1344,1359,1362,1368,1370,1375,1376,1384,1385,1388,1389,1393,1405,1406,1414,1421,1425,1434,1438,1440,1444,1446,1454,1461,1462,1468,1469,1477,1484,1487,1495,1498,1505,1506,1515,1525,1526]
Loading

0 comments on commit 517e396

Please sign in to comment.