Skip to content

Commit

Permalink
test(boot): FastLP balance not in wallet record
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Dec 17, 2024
1 parent 708c2f0 commit 0421cec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/boot/test/fast-usdc/fast-usdc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ test.serial(

const current = watcherWallet.getCurrentWalletRecord();

// XXX We should be able to compare objects by identity like this:
// XXX #10491 We should be able to compare objects by identity like this:
//
// const invitationPurse = current.purses.find(
// p => p.brand === agoricNamesRemotes.brand.Invitation,
Expand Down Expand Up @@ -239,6 +239,13 @@ test.serial('makes usdc advance', async t => {
});
await eventLoopIteration();

const { purses } = oracles[0].getCurrentWalletRecord();
// XXX #10491 should not need to resort to string match on brand
t.falsy(
purses.find(p => `${p.brand}`.match(/FastLP/)),
'FastLP balance not in wallet record',
);

const evidence = MockCctpTxEvidences.AGORIC_PLUS_OSMO();

harness?.useRunPolicy(true);
Expand Down

0 comments on commit 0421cec

Please sign in to comment.