Skip to content

Commit

Permalink
feat: remove console logs and prev changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-woof-software committed Jun 13, 2024
1 parent 9f20622 commit 184074b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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));
}
});
3 changes: 1 addition & 2 deletions plugins/scenario/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion scenario/CrossChainGovernanceScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'}])
Expand Down

0 comments on commit 184074b

Please sign in to comment.