Skip to content

Commit ba19ac0

Browse files
committed
chore: await deleteTestKeys
- get rid of dangling promise and await something we actually rely on
1 parent 6a891c3 commit ba19ac0

10 files changed

+10
-10
lines changed

multichain-testing/test/account-balance-queries.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const contractBuilder =
2020

2121
test.before(async t => {
2222
const { deleteTestKeys, setupTestKeys, ...rest } = await commonSetup(t);
23-
deleteTestKeys(accounts).catch();
23+
await deleteTestKeys(accounts).catch();
2424
const wallets = await setupTestKeys(accounts);
2525
t.context = { ...rest, wallets, deleteTestKeys };
2626
const { startContract } = rest;

multichain-testing/test/auto-stake-it.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const contractBuilder =
1919
test.before(async t => {
2020
const { setupTestKeys, ...common } = await commonSetup(t);
2121
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
22-
deleteTestKeys(accounts).catch();
22+
await deleteTestKeys(accounts).catch();
2323
const wallets = await setupTestKeys(accounts);
2424
t.context = { ...common, wallets };
2525
await startContract(contractName, contractBuilder, commonBuilderOpts);

multichain-testing/test/basic-flows.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const contractBuilder =
1818
test.before(async t => {
1919
const { setupTestKeys, ...common } = await commonSetup(t);
2020
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
21-
deleteTestKeys(accounts).catch();
21+
await deleteTestKeys(accounts).catch();
2222
const wallets = await setupTestKeys(accounts);
2323
t.context = { ...common, wallets };
2424
await startContract(contractName, contractBuilder, commonBuilderOpts);

multichain-testing/test/chain-queries.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const contractBuilder =
2828

2929
test.before(async t => {
3030
const { deleteTestKeys, setupTestKeys, ...rest } = await commonSetup(t);
31-
deleteTestKeys(accounts).catch();
31+
await deleteTestKeys(accounts).catch();
3232
const wallets = await setupTestKeys(accounts);
3333
t.context = { ...rest, wallets, deleteTestKeys };
3434
const { startContract } = rest;

multichain-testing/test/deposit-withdraw-lca.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const contractBuilder =
1616
test.before(async t => {
1717
const { setupTestKeys, ...common } = await commonSetup(t);
1818
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
19-
deleteTestKeys(accounts).catch();
19+
await deleteTestKeys(accounts).catch();
2020
const wallets = await setupTestKeys(accounts);
2121
t.context = { ...common, wallets };
2222
await startContract(contractName, contractBuilder, commonBuilderOpts);

multichain-testing/test/deposit-withdraw-portfolio.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const contractBuilder =
1616
test.before(async t => {
1717
const { setupTestKeys, ...common } = await commonSetup(t);
1818
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
19-
deleteTestKeys(accounts).catch();
19+
await deleteTestKeys(accounts).catch();
2020
const wallets = await setupTestKeys(accounts);
2121
t.context = { ...common, wallets };
2222
await startContract(contractName, contractBuilder, commonBuilderOpts);

multichain-testing/test/fast-usdc/fast-usdc.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test.before(async t => {
4545
provisionSmartWallet,
4646
startContract,
4747
} = common;
48-
deleteTestKeys(accounts).catch();
48+
await deleteTestKeys(accounts).catch();
4949
const wallets = await setupTestKeys(accounts, values(oracleMnemonics));
5050

5151
// provision oracle wallets first so invitation deposits don't fail

multichain-testing/test/ica-channel-close.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const contractBuilder =
2424
test.before(async t => {
2525
const { setupTestKeys, ...common } = await commonSetup(t);
2626
const { commonBuilderOpts, deleteTestKeys, startContract } = common;
27-
deleteTestKeys(accounts).catch();
27+
await deleteTestKeys(accounts).catch();
2828
const wallets = await setupTestKeys(accounts);
2929
t.context = { ...common, wallets };
3030
await startContract(contractName, contractBuilder, commonBuilderOpts);

multichain-testing/test/send-anywhere.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test.before(async t => {
2323
const { setupTestKeys, ...common } = await commonSetup(t);
2424
const { commonBuilderOpts, deleteTestKeys, faucetTools, startContract } =
2525
common;
26-
deleteTestKeys(accounts).catch();
26+
await deleteTestKeys(accounts).catch();
2727
const wallets = await setupTestKeys(accounts);
2828
t.context = { ...common, wallets };
2929
await startContract(contractName, contractBuilder, commonBuilderOpts);

multichain-testing/test/stake-ica.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test.before(async t => {
1818
const { deleteTestKeys, setupTestKeys, ...rest } = await commonSetup(t);
1919
// XXX not necessary for CI, but helpful for unexpected failures in
2020
// active development (test.after cleanup doesn't run).
21-
deleteTestKeys(accounts).catch();
21+
await deleteTestKeys(accounts).catch();
2222
const wallets = await setupTestKeys(accounts);
2323
t.context = { ...rest, wallets, deleteTestKeys };
2424
});

0 commit comments

Comments
 (0)