Skip to content

Commit

Permalink
test: allow EC update bootstap test to run without auction upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Oct 25, 2024
1 parent 1f4c961 commit 29bfd6c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/boot/test/bootstrapTests/ec-membership-update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,23 @@ export const makeZoeTestContext = async t => {
await EV.vat('bootstrap').consumeItem('vaultFactoryKit');
console.timeLog('DefaultTestContext', 'vaultFactoryKit');

// replaceElectorate relies on these values from the auction upgrade. Insert
// them manually since this bootstrap test doesn't run the auction upgrade.
const governedKits = await EV.vat('bootstrap').consumeItem(
'governedContractKits',
);
const auctioneerKit = await EV.vat('bootstrap').consumeItem('auctioneerKit');
const auctionInstance = await auctioneerKit.instance;
const aKit = await EV(governedKits).get(auctionInstance);
await EV.vat('bootstrap').produceItem(
'auctionUpgradeNewInstance',
aKit.instance,
);
await EV.vat('bootstrap').produceItem(
'auctionUpgradeNewGovCreator',
aKit.governorCreatorFacet,
);

// has to be late enough for agoricNames data to have been published
const agoricNamesRemotes = makeAgoricNamesRemotesFromFakeStorage(storage);
console.timeLog('DefaultTestContext', 'agoricNamesRemotes');
Expand Down

0 comments on commit 29bfd6c

Please sign in to comment.