Skip to content

Commit

Permalink
debug: scenario is running localy, but not via github. debuging
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-woof-software committed Jun 13, 2024
1 parent 3ed5b7e commit aa413ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/scenario/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,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;
console.log({ base, scenario, error, trace, diff })
console.error(`[${base}] ❌ ${scenario}: Error ${msg}`);
if (diff) {
console.error(showDiff(diff.expected, diff.actual));
Expand Down
12 changes: 12 additions & 0 deletions scenario/CrossChainGovernanceScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,16 @@ scenario(
);

expect(await proxyAdmin.owner()).to.eq(oldLocalTimelock.address);
console.log(await proxyAdmin.owner(), oldLocalTimelock.address)
expect(await comet.governor()).to.eq(oldLocalTimelock.address);
console.log(await comet.governor(), oldLocalTimelock.address)

await createCrossChainProposal(context, upgradeL2GovContractsProposal, oldBridgeReceiver);

expect(await proxyAdmin.owner()).to.eq(newLocalTimelock.address);
console.log(await proxyAdmin.owner(), newLocalTimelock.address)
expect(await comet.governor()).to.eq(newLocalTimelock.address);
console.log(await comet.governor(), newLocalTimelock.address)

// Update aliases now that the new Timelock and BridgeReceiver are official
await dm.putAlias('timelock', newLocalTimelock);
Expand All @@ -139,16 +143,24 @@ scenario(
);

expect(await newLocalTimelock.delay()).to.eq(currentTimelockDelay);
console.log(await newLocalTimelock.delay(), currentTimelockDelay)
expect(currentTimelockDelay).to.not.eq(newTimelockDelay);
console.log(currentTimelockDelay, newTimelockDelay)

await createCrossChainProposal(context, l2ProposalData, newBridgeReceiver);

expect(await newLocalTimelock.delay()).to.eq(newTimelockDelay);
console.log(await newLocalTimelock.delay(), newTimelockDelay)
expect(await comet.isAbsorbPaused()).to.eq(true);
console.log(await comet.isAbsorbPaused(), true)
expect(await comet.isBuyPaused()).to.eq(true);
console.log(await comet.isBuyPaused(), true)
expect(await comet.isSupplyPaused()).to.eq(true);
console.log(await comet.isSupplyPaused(), true)
expect(await comet.isTransferPaused()).to.eq(true);
console.log(await comet.isTransferPaused(), true)
expect(await comet.isWithdrawPaused()).to.eq(true);
console.log(await comet.isWithdrawPaused(), true)
}
);

Expand Down

0 comments on commit aa413ea

Please sign in to comment.