From 184074b11d6ca8e58c3a4d08f3da0917eb59bbea Mon Sep 17 00:00:00 2001 From: dmitriy-bergman-works Date: Thu, 13 Jun 2024 22:03:43 +0200 Subject: [PATCH] feat: remove console logs and prev changes --- .../usdt/migrations/1717936901_configurate_and_end.ts | 7 +++---- plugins/scenario/Report.ts | 3 +-- scenario/CrossChainGovernanceScenario.ts | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/deployments/arbitrum/usdt/migrations/1717936901_configurate_and_end.ts b/deployments/arbitrum/usdt/migrations/1717936901_configurate_and_end.ts index 3eec34ee4..ab34bf9af 100644 --- a/deployments/arbitrum/usdt/migrations/1717936901_configurate_and_end.ts +++ b/deployments/arbitrum/usdt/migrations/1717936901_configurate_and_end.ts @@ -244,10 +244,6 @@ export default migration('1717936901_configurate_and_end', { expect(await WBTCInfo.supplyCap).to.be.eq(exp(250, 8)); expect(await GMXInfo.supplyCap).to.be.eq(exp(100_000, 18)); - // check speeds - expect(await comet.baseTrackingSupplySpeed()).to.be.equal(exp(12 / 86400, 15, 18)); - expect(await comet.baseTrackingBorrowSpeed()).to.be.equal(exp(10 / 86400, 15, 18)); - expect(await comet.pauseGuardian()).to.be.eq('0x78E6317DD6D43DdbDa00Dce32C2CbaFc99361a9d'); // 2. & 3. & 4. & 5. @@ -321,5 +317,8 @@ export default migration('1717936901_configurate_and_end', { }, ], }); + + expect(await comet.baseTrackingSupplySpeed()).to.be.equal(exp(12 / 86400, 15, 18)); + expect(await comet.baseTrackingBorrowSpeed()).to.be.equal(exp(10 / 86400, 15, 18)); } }); \ No newline at end of file diff --git a/plugins/scenario/Report.ts b/plugins/scenario/Report.ts index 81de6fe2b..4303f1e9c 100644 --- a/plugins/scenario/Report.ts +++ b/plugins/scenario/Report.ts @@ -76,8 +76,7 @@ async function showReportConsole(results: Result[], _consoleOptions: ConsoleForm } for (const { base, scenario, error, trace, diff } of errors) { - // const m = trace || error.message, msg = m.length > 1024 ? `${m.slice(0, 1024)}...` : m; - const m = trace || error.message, msg = m; + const m = trace || error.message, msg = m.length > 1024 ? `${m.slice(0, 1024)}...` : m; console.error(`[${base}] ❌ ${scenario}: Error ${msg}`); if (diff) { console.error(showDiff(diff.expected, diff.actual)); diff --git a/scenario/CrossChainGovernanceScenario.ts b/scenario/CrossChainGovernanceScenario.ts index f5fb6964d..cc25ab765 100644 --- a/scenario/CrossChainGovernanceScenario.ts +++ b/scenario/CrossChainGovernanceScenario.ts @@ -152,7 +152,7 @@ scenario( } ); -scenario.only( +scenario( 'upgrade Arbitrum governance contracts and ensure they work properly', { filter: async ctx => matchesDeployment(ctx, [{network: 'arbitrum'}, {network: 'arbitrum-goerli'}])