aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/helpers.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts
index 0f690f26a..dc56a9876 100644
--- a/src/headless/helpers.ts
+++ b/src/headless/helpers.ts
@@ -158,6 +158,9 @@ export async function withdrawTestBalance(
]);
const donePromise = new Promise((resolve, reject) => {
+ myWallet.runRetryLoop().catch((x) => {
+ reject(x);
+ });
myWallet.addNotificationListener(n => {
if (
n.type === NotificationType.ReserveDepleted &&
@@ -169,7 +172,6 @@ export async function withdrawTestBalance(
});
await bank.createReserve(bankUser, amount, reservePub, exchangePaytoUri);
-
await myWallet.confirmReserve({ reservePub: reserveResponse.reservePub });
await donePromise;
}