Skip to content

Commit

Permalink
chore: remove unnecessary bridgeHandlers
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 22, 2024
1 parent b7aba1e commit caba319
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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');

Expand Down
5 changes: 0 additions & 5 deletions packages/boot/tools/supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -262,7 +261,6 @@ export const makeSwingsetTestKit = async (
profileVats = [] as string[],
debugVats = [] as string[],
defaultManagerType = 'local' as ManagerType,
bridgeHandlers = {} as Record<string, (obj: any) => unknown>,
} = {},
) => {
console.time('makeBaseSwingsetTestKit');
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit caba319

Please sign in to comment.