Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(fast-usdc): boot test for forward #10903

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions packages/boot/test/fast-usdc/fast-usdc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ test.serial('makes usdc advance', async t => {
storage,
agoricNamesRemotes,
harness,
runUtils: { EV },
} = t.context;
const oracles = await Promise.all([
wfd.provideSmartWallet('agoric19uscwxdac6cf6z7d5e26e0jm0lgwstc47cpll8'),
Expand Down Expand Up @@ -317,6 +318,11 @@ test.serial('makes usdc advance', async t => {
{ status: 'ADVANCING' },
]);

// Restart contract to make sure it doesn't break advance flow
const kit = await EV.vat('bootstrap').consumeItem('fastUsdcKit');
const actual = await EV(kit.adminFacet).restartContract(kit.privateArgs);
t.deepEqual(actual, { incarnationNumber: 1 });

const { runInbound } = t.context.bridgeUtils;
await runInbound(
BridgeId.VTRANSFER,
Expand Down Expand Up @@ -503,14 +509,6 @@ test.serial('LP withdraws', async t => {
);
});

test.serial('restart contract', async t => {
const { EV } = t.context.runUtils;
await null;
const kit = await EV.vat('bootstrap').consumeItem('fastUsdcKit');
const actual = await EV(kit.adminFacet).restartContract(kit.privateArgs);
t.deepEqual(actual, { incarnationNumber: 1 });
});

test.serial('replace operators', async t => {
const {
agoricNamesRemotes,
Expand Down
Loading