Skip to content

Commit

Permalink
chore: await deleteTestKeys
Browse files Browse the repository at this point in the history
- get rid of dangling promise and await something we actually rely on
  • Loading branch information
0xpatrickdev committed Dec 13, 2024
1 parent 46f5743 commit 2c4d7cd
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion multichain-testing/test/account-balance-queries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const contractBuilder =

test.before(async t => {
const { deleteTestKeys, setupTestKeys, ...rest } = await commonSetup(t);
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...rest, wallets, deleteTestKeys };
const { startContract } = rest;
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/auto-stake-it.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const contractBuilder =
test.before(async t => {
const { setupTestKeys, ...common } = await commonSetup(t);
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...common, wallets };
await startContract(contractName, contractBuilder, commonBuilderOpts);
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/basic-flows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const contractBuilder =
test.before(async t => {
const { setupTestKeys, ...common } = await commonSetup(t);
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...common, wallets };
await startContract(contractName, contractBuilder, commonBuilderOpts);
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/chain-queries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const contractBuilder =

test.before(async t => {
const { deleteTestKeys, setupTestKeys, ...rest } = await commonSetup(t);
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...rest, wallets, deleteTestKeys };
const { startContract } = rest;
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/deposit-withdraw-lca.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const contractBuilder =
test.before(async t => {
const { setupTestKeys, ...common } = await commonSetup(t);
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...common, wallets };
await startContract(contractName, contractBuilder, commonBuilderOpts);
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/deposit-withdraw-portfolio.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const contractBuilder =
test.before(async t => {
const { setupTestKeys, ...common } = await commonSetup(t);
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...common, wallets };
await startContract(contractName, contractBuilder, commonBuilderOpts);
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/fast-usdc/fast-usdc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test.before(async t => {
provisionSmartWallet,
startContract,
} = common;
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts, values(oracleMnemonics));

// provision oracle wallets first so invitation deposits don't fail
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/ica-channel-close.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const contractBuilder =
test.before(async t => {
const { setupTestKeys, ...common } = await commonSetup(t);
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...common, wallets };
await startContract(contractName, contractBuilder, commonBuilderOpts);
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/send-anywhere.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.before(async t => {
const { setupTestKeys, ...common } = await commonSetup(t);
const { commonBuilderOpts, deleteTestKeys, faucetTools, startContract } =
common;
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...common, wallets };
await startContract(contractName, contractBuilder, commonBuilderOpts);
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/stake-ica.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test.before(async t => {
const { deleteTestKeys, setupTestKeys, ...rest } = await commonSetup(t);
// XXX not necessary for CI, but helpful for unexpected failures in
// active development (test.after cleanup doesn't run).
deleteTestKeys(accounts).catch();
await deleteTestKeys(accounts).catch();
const wallets = await setupTestKeys(accounts);
t.context = { ...rest, wallets, deleteTestKeys };
});
Expand Down

0 comments on commit 2c4d7cd

Please sign in to comment.