From 25dfa57865e619696858270cbfb18592ac5450a6 Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Tue, 17 Dec 2024 12:35:32 +0500 Subject: [PATCH] test: disabled vault manager tests --- src/test/mappingHandlers.test.ts | 133 ++++++++++++++++--------------- 1 file changed, 67 insertions(+), 66 deletions(-) diff --git a/src/test/mappingHandlers.test.ts b/src/test/mappingHandlers.test.ts index 91effab5..c9b68d7d 100644 --- a/src/test/mappingHandlers.test.ts +++ b/src/test/mappingHandlers.test.ts @@ -121,72 +121,73 @@ vaultManagerMetricsDaily.totalProceedsReceivedLast = BigInt(0); vaultManagerMetricsDaily.totalShortfallReceivedLast = BigInt(0); vaultManagerMetricsDaily.metricsCount = BigInt(1); -subqlTest( - 'VaultManagerGovernance, VaultManagerMetrics, VaultManagerMetricsDaily, ReserveMetrics, \ - ReserveAllocationMetrics, and ReserveAllocationMetricsDaily at block height 1212', - 1212, - [], - [ - new VaultManagerGovernance( - 'published.vaultFactory.managers.manager1.governance', - BigInt(1212), - new Date('2024-12-16 11:42:27.202'), - BigInt(1000000000), - BigInt(100), - BigInt(1), - BigInt(100), - BigInt(150), - BigInt(100), - BigInt(25), - BigInt(100), - BigInt(1), - BigInt(10000), - BigInt(50), - ), - new VaultManagerMetrics( - 'published.vaultFactory.managers.manager1.metrics', - BigInt(1212), - new Date('2024-12-16 11:42:27.202'), - 'stATOM', - BigInt(0), - 'IST', - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - BigInt(0), - ), - vaultManagerMetricsDaily, - new ReserveMetrics( - 'published.reserve.metrics', - BigInt(1212), - new Date('2024-12-16T11:42:27.202Z'), - BigInt(0), - BigInt(0), - BigInt(0), - ), - new ReserveAllocationMetrics( - 'IST', - BigInt(1212), - new Date('2024-12-16T11:42:27.202Z'), - 'IST', - 'Fee', - BigInt(184980868), - 'published.reserve.metrics', - ), - reserveAllocationMetricsDaily, - ], - 'handleStateChangeEvent', -); +// DISABLED because the timestamp for these entities is changed on each run of the a3p container +// subqlTest( +// 'VaultManagerGovernance, VaultManagerMetrics, VaultManagerMetricsDaily, ReserveMetrics, \ +// ReserveAllocationMetrics, and ReserveAllocationMetricsDaily at block height 1212', +// 1212, +// [], +// [ +// new VaultManagerGovernance( +// 'published.vaultFactory.managers.manager1.governance', +// BigInt(1212), +// new Date('2024-12-16 11:42:27.202'), +// BigInt(1000000000), +// BigInt(100), +// BigInt(1), +// BigInt(100), +// BigInt(150), +// BigInt(100), +// BigInt(25), +// BigInt(100), +// BigInt(1), +// BigInt(10000), +// BigInt(50), +// ), +// new VaultManagerMetrics( +// 'published.vaultFactory.managers.manager1.metrics', +// BigInt(1212), +// new Date('2024-12-16 11:42:27.202'), +// 'stATOM', +// BigInt(0), +// 'IST', +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// ), +// vaultManagerMetricsDaily, +// new ReserveMetrics( +// 'published.reserve.metrics', +// BigInt(1212), +// new Date('2024-12-16T11:42:27.202Z'), +// BigInt(0), +// BigInt(0), +// BigInt(0), +// ), +// new ReserveAllocationMetrics( +// 'IST', +// BigInt(1212), +// new Date('2024-12-16T11:42:27.202Z'), +// 'IST', +// 'Fee', +// BigInt(184980868), +// 'published.reserve.metrics', +// ), +// reserveAllocationMetricsDaily, +// ], +// 'handleStateChangeEvent', +// ); subqlTest( 'BoardAux at block 643',