Skip to content

Commit

Permalink
test(upgrade-next): update vat incarnation counts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 26, 2024
1 parent 798937c commit cc17972
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions a3p-integration/proposals/e:upgrade-next/initial.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ import test from 'ava';
import { getVatDetails } from '@agoric/synthetic-chain';

const vats = {
network: { incarnation: 0 },
ibc: { incarnation: 0 },
localchain: { incarnation: 0 },
network: { incarnation: 1 },
ibc: { incarnation: 1 },
localchain: { incarnation: 1 },
transfer: { incarnation: 1 },
walletFactory: { incarnation: 4 },
zoe: { incarnation: 2 },
};

test(`vat details`, async t => {
await null;
for (const [vatName, expected] of Object.entries(vats)) {
const actual = await getVatDetails(vatName);
t.like(actual, expected, `${vatName} details mismatch`);
const actual = {};
for await (const vatName of Object.keys(vats)) {
actual[vatName] = await getVatDetails(vatName);
}
t.like(actual, vats, `vat details are alike`);
});

0 comments on commit cc17972

Please sign in to comment.