aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-05-01 08:00:06 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-05-01 08:00:06 +0200
commit8d1ce9dae1fd94204c142ac599b498bec9680b6c (patch)
treefc6a55104ca6a457d67336db5757ec442824e074 /packages/taler-harness/src/integrationtests/test-exchange-deposit.ts
parent09046010252b134348de8b18c0c99ffea4e3c95d (diff)
parent20d2861508df18da18e66c94a5a268067565121b (diff)
Merge branch 'master' into feature/tokens
# Conflicts: # packages/auditor-backoffice-ui/src/InstanceRoutes.tsx # packages/merchant-backoffice-ui/src/declaration.d.ts # packages/merchant-backoffice-ui/src/schemas/index.ts
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-exchange-deposit.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-exchange-deposit.ts25
1 files changed, 13 insertions, 12 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts b/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts
index 8e1726aba..47a17a1f2 100644
--- a/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts
+++ b/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts
@@ -26,20 +26,19 @@ import {
} from "@gnu-taler/taler-util";
import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
import {
- checkReserve,
CryptoDispatcher,
+ SynchronousCryptoWorkerFactoryPlain,
+} from "@gnu-taler/taler-wallet-core";
+import {
+ checkReserve,
depositCoin,
downloadExchangeInfo,
findDenomOrThrow,
- SynchronousCryptoWorkerFactoryPlain,
- topupReserveWithDemobank,
- Wallet,
+ topupReserveWithBank,
withdrawCoin,
-} from "@gnu-taler/taler-wallet-core";
+} from "@gnu-taler/taler-wallet-core/dbless";
import { GlobalTestState } from "../harness/harness.js";
-import {
- createSimpleTestkudosEnvironmentV2,
-} from "../harness/helpers.js";
+import { createSimpleTestkudosEnvironmentV2 } from "../harness/helpers.js";
/**
* Run test for basic, bank-integrated withdrawal and payment.
@@ -64,7 +63,7 @@ export async function runExchangeDepositTest(t: GlobalTestState) {
const reserveKeyPair = await cryptoApi.createEddsaKeypair({});
- await topupReserveWithDemobank({
+ await topupReserveWithBank({
http,
amount: "TESTKUDOS:10" as AmountString,
corebankApiBaseUrl: bank.corebankApiBaseUrl,
@@ -76,9 +75,11 @@ export async function runExchangeDepositTest(t: GlobalTestState) {
await checkReserve(http, exchange.baseUrl, reserveKeyPair.pub);
- const d1 = findDenomOrThrow(exchangeInfo, "TESTKUDOS:8" as AmountString, {
- denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
- });
+ const d1 = findDenomOrThrow(
+ exchangeInfo,
+ "TESTKUDOS:8" as AmountString,
+ {},
+ );
const coin = await withdrawCoin({
http,