From e83dd098cbb77a71bddeda6b55fde3087e6d04ae Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Mon, 10 Jun 2024 09:03:33 -0500 Subject: [PATCH] fixup! chore(facade): move registerChain to chainHub --- packages/orchestration/test/facade.test.ts | 42 +--------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/packages/orchestration/test/facade.test.ts b/packages/orchestration/test/facade.test.ts index cf5c0dc43ad4..3d637205a911 100644 --- a/packages/orchestration/test/facade.test.ts +++ b/packages/orchestration/test/facade.test.ts @@ -48,44 +48,4 @@ test('chain info', async t => { t.deepEqual(await result.getChainInfo(), mockChainInfo); }); -// XXX what to do with this test now that chainInfos is the caller's responsibility? -test('contract upgrade', async t => { - const { bootstrap, facadeServices } = await commonSetup(t); - - const zone = bootstrap.rootZone; - - const { zcf } = await setupZCFTest(); - - // Register once - { - const chainHub = makeChainHub(facadeServices.agoricNames); - makeOrchestrationFacade({ - ...facadeServices, - storageNode: bootstrap.storage.rootNode, - zcf, - zone, - chainHub, - makeLocalChainAccountKit, - }); - chainHub.registerChain('mock', mockChainInfo); - - // cannot register again in this incarnation - t.throws(() => chainHub.registerChain('mock', mockChainInfo), { - message: /already registered/, - }); - } - - // Simulate running again in a new incarnation with the same zone - { - const chainHub = makeChainHub(facadeServices.agoricNames); - makeOrchestrationFacade({ - ...facadeServices, - storageNode: bootstrap.storage.rootNode, - zcf, - zone, - chainHub, - makeLocalChainAccountKit, - }); - chainHub.registerChain('mock', mockChainInfo); - } -}); +test.todo('contract upgrade');