From dd296e9de14384c3e814b8e0dd2c32dc02c84dcd Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Mon, 15 Jan 2024 14:36:53 +0000 Subject: [PATCH] ci: simulate network core proposal in upgrade test --- a3p-integration/proposals/a:upgrade-next/package.json | 6 +++++- a3p-integration/proposals/a:upgrade-next/post.test.js | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 a3p-integration/proposals/a:upgrade-next/post.test.js diff --git a/a3p-integration/proposals/a:upgrade-next/package.json b/a3p-integration/proposals/a:upgrade-next/package.json index 59c71cdf0d5..e84359bd07e 100644 --- a/a3p-integration/proposals/a:upgrade-next/package.json +++ b/a3p-integration/proposals/a:upgrade-next/package.json @@ -3,7 +3,11 @@ "releaseNotes": "TBD", "sdkImageTag": "latest", "planName": "UNRELEASED_UPGRADE", - "upgradeInfo": {}, + "upgradeInfo": { + "coreProposals": [ + "@agoric/builders/scripts/vats/init-network.js" + ] + }, "type": "Software Upgrade Proposal" }, "type": "module", diff --git a/a3p-integration/proposals/a:upgrade-next/post.test.js b/a3p-integration/proposals/a:upgrade-next/post.test.js new file mode 100644 index 00000000000..5508f3e70da --- /dev/null +++ b/a3p-integration/proposals/a:upgrade-next/post.test.js @@ -0,0 +1,8 @@ +import test from 'ava'; + +import { getIncarnation } from '@agoric/synthetic-chain/src/lib/vat-status.js'; + +test(`Ensure Network Vat was installed`, async t => { + const incarnation = await getIncarnation('network'); + t.is(incarnation, 0); +});