Skip to content

Commit

Permalink
test(boot): fix 'oracles provision...' to do all, not just 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc authored and turadg committed Feb 27, 2025
1 parent 4b4d123 commit 3e1e14c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/boot/test/fast-usdc/fast-usdc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ test.after.always(t => t.context.shutdown?.());

test.serial('oracles provision before contract deployment', async t => {
const { walletFactoryDriver: wfd } = t.context;
const watcherWallet = await wfd.provideSmartWallet('agoric1watcher1');
const [watcherWallet] = await Promise.all(
oracleAddrs.map(addr => wfd.provideSmartWallet(addr)),
);
t.truthy(watcherWallet);
});

Expand All @@ -75,9 +77,7 @@ test.serial(
walletFactoryDriver: wfd,
} = t.context;

const [watcherWallet] = await Promise.all(
oracleAddrs.map(addr => wfd.provideSmartWallet(addr)),
);
const watcherWallet = await wfd.provideSmartWallet(oracleAddrs[0]);

// inbound `startChannelOpenInit` responses immediately.
// needed since the Fusdc StartFn relies on an ICA being created
Expand Down

0 comments on commit 3e1e14c

Please sign in to comment.