diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-06 19:29:12 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-06 19:29:12 +0530 |
commit | d0088323ce02c6cc2cbe1413eddb0b81f3f147f2 (patch) | |
tree | 432a86a8397a0e9e0454bd14783b246e8d0822ca | |
parent | 87749371dd6a8ca29d812d6f58cffa5feb6ec41c (diff) |
always update /keys before autorefreshv0.7.1-dev.28
3 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-integrationtests/src/test-timetravel-autorefresh.ts b/packages/taler-integrationtests/src/test-timetravel-autorefresh.ts index 2c9fdc60c..1f2202091 100644 --- a/packages/taler-integrationtests/src/test-timetravel-autorefresh.ts +++ b/packages/taler-integrationtests/src/test-timetravel-autorefresh.ts @@ -90,6 +90,8 @@ runTest(async (t: GlobalTestState) => { merchant, }); + await wallet.runUntilDone(); + let p: PendingOperationsResponse; p = await wallet.getPendingOperations(); diff --git a/packages/taler-integrationtests/src/test-timetravel-withdraw.ts b/packages/taler-integrationtests/src/test-timetravel-withdraw.ts index b25720c13..99c003999 100644 --- a/packages/taler-integrationtests/src/test-timetravel-withdraw.ts +++ b/packages/taler-integrationtests/src/test-timetravel-withdraw.ts @@ -51,6 +51,7 @@ runTest(async (t: GlobalTestState) => { await exchange.stop(); exchange.setTimetravel(timetravelDuration); + await exchange.keyup(); await exchange.start(); await exchange.pingUntilAvailable(); diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 062a52e6d..a7082a501 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -678,6 +678,7 @@ export async function autoRefresh( ws: InternalWalletState, exchangeBaseUrl: string, ): Promise<void> { + await updateExchangeFromUrl(ws, exchangeBaseUrl, true); await ws.db.runWithWriteTransaction( [ Stores.coins, |