From 8c0299ed1fae55d59aa1ec93f7c7a3bcec66d905 Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Thu, 24 Oct 2024 17:33:54 -0700 Subject: [PATCH] test: allow EC update bootstap test to run without auction upgrade --- .../bootstrapTests/ec-membership-update.test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/boot/test/bootstrapTests/ec-membership-update.test.ts b/packages/boot/test/bootstrapTests/ec-membership-update.test.ts index 164b7f710e8..3865cb87432 100644 --- a/packages/boot/test/bootstrapTests/ec-membership-update.test.ts +++ b/packages/boot/test/bootstrapTests/ec-membership-update.test.ts @@ -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');