diff options
author | Florian Dold <florian@dold.me> | 2023-12-18 23:00:33 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-18 23:00:33 +0100 |
commit | f22f5f89cc99fb0556b956b6432e4817d52378d2 (patch) | |
tree | 9998bd4fd0d2b51ba5c27ebe9c2f694134c93841 /packages/taler-wallet-core/src/operations/testing.ts | |
parent | 0ba8fe9428dc5779cc98bf4e875f60eb01966323 (diff) | |
download | wallet-core-f22f5f89cc99fb0556b956b6432e4817d52378d2.tar.xz |
wallet-core: update exchange inline, not in task
A task (such as refresh) can't wait until the exchange update task
updates the exchange, as task handlers don't run concurrently.
The previous behavior caused some transactions to block indefinitely
when waiting for an updated exchange entry.
Diffstat (limited to 'packages/taler-wallet-core/src/operations/testing.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/testing.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts index a03d54d3a..d75fb54a7 100644 --- a/packages/taler-wallet-core/src/operations/testing.ts +++ b/packages/taler-wallet-core/src/operations/testing.ts @@ -581,7 +581,7 @@ export async function runIntegrationTest2( const exchangeInfo = await fetchFreshExchange(ws, args.exchangeBaseUrl); - const currency = exchangeInfo.exchangeDetails.currency; + const currency = exchangeInfo.currency; const amountToWithdraw = Amounts.parseOrThrow(`${currency}:10`); const amountToSpend = Amounts.parseOrThrow(`${currency}:2`); |