Skip to content

Commit

Permalink
test: ensure that the chargingPeriod is different than before
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Jan 7, 2025
1 parent c607052 commit 391dda0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions a3p-integration/proposals/z:acceptance/governance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ const governanceDriver = await makeGovernanceDriver(fetch, networkConfig);
test.serial(
'economic committee can make governance proposal and vote on it',
async t => {
const vaultFactoryParamsBefore = await readLatestHead(
'published.vaultFactory.governance',
);
const newChargingPeriod =
// @ts-expect-error it's a record
vaultFactoryParamsBefore.current.ChargingPeriod.value === 400n
? 300n
: 400n;

const params = {
ChargingPeriod: 400n,
ChargingPeriod: newChargingPeriod,
};
const path = { paramPath: { key: 'governedParams' } };
t.log('Proposing param change', { params, path });
Expand Down Expand Up @@ -64,7 +73,7 @@ test.serial(
t.is(
// @ts-expect-error it's a record
vaultFactoryParamsAfter.current.ChargingPeriod.value,
400n,
newChargingPeriod,
'vaultFactory governed parameters did not match',
);
},
Expand Down

0 comments on commit 391dda0

Please sign in to comment.