From caba31968d51bd9ee5b1165e34ae8615cab8b203 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 22 May 2024 10:45:25 -0700 Subject: [PATCH] chore: remove unnecessary bridgeHandlers --- packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts | 8 -------- packages/boot/tools/supports.ts | 5 ----- 2 files changed, 13 deletions(-) diff --git a/packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts b/packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts index 64909e9dc40..47dcc7d963c 100644 --- a/packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts +++ b/packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts @@ -31,11 +31,6 @@ export const makeTestContext = async t => { }) as Baggage; const zone = makeDurableZone(baggage); - const bridgeHandler = makeFakeIbcBridge( - zone, - () => {}, - (handler, obj) => t.context.EV(handler).toBridge(obj), - ); const bundleDir = 'bundles/vaults'; const bundleCache = await makeNodeBundleCache( bundleDir, @@ -44,9 +39,6 @@ export const makeTestContext = async t => { ); const swingsetTestKit = await makeSwingsetTestKit(t.log, bundleDir, { configSpecifier: PLATFORM_CONFIG, - bridgeHandlers: { - [BridgeId.DIBC]: obj => bridgeHandler.toBridge(obj), - }, }); console.timeLog('DefaultTestContext', 'swingsetTestKit'); diff --git a/packages/boot/tools/supports.ts b/packages/boot/tools/supports.ts index 882a4b14073..ee211d1c89a 100644 --- a/packages/boot/tools/supports.ts +++ b/packages/boot/tools/supports.ts @@ -249,7 +249,6 @@ export const matchIter = (t: AvaT, iter, valueRef) => { * @param [options.profileVats] * @param [options.debugVats] * @param [options.defaultManagerType] - * @param [options.bridgeHandlers] */ export const makeSwingsetTestKit = async ( log: (..._: any[]) => void, @@ -262,7 +261,6 @@ export const makeSwingsetTestKit = async ( profileVats = [] as string[], debugVats = [] as string[], defaultManagerType = 'local' as ManagerType, - bridgeHandlers = {} as Record unknown>, } = {}, ) => { console.time('makeBaseSwingsetTestKit'); @@ -305,9 +303,6 @@ export const makeSwingsetTestKit = async ( } outboundMessages.get(bridgeId).push(obj); - if (bridgeId in bridgeHandlers) { - return bridgeHandlers[bridgeId](obj); - } switch (bridgeId) { case BridgeId.BANK: { trace(