aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-11-29 17:54:41 +0100
committerFlorian Dold <florian@dold.me>2023-11-29 17:54:41 +0100
commit1a0293add0a9c81eb035da57400254c8203ab9a6 (patch)
tree9b67e6522952ab5d5a3e7578928432e445d4f195 /packages/taler-harness
parente7cd29e5c6e4f27fecd351f1161ef2e61ccf9d25 (diff)
downloadwallet-core-1a0293add0a9c81eb035da57400254c8203ab9a6.tar.xz
harness: fix helper to create reserve via /admin/add-incoming
Diffstat (limited to 'packages/taler-harness')
-rw-r--r--packages/taler-harness/src/bench2.ts6
-rw-r--r--packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts4
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts
index 87bc2ff7f..35c12b2d4 100644
--- a/packages/taler-harness/src/bench2.ts
+++ b/packages/taler-harness/src/bench2.ts
@@ -28,7 +28,7 @@ import {
import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
import {
checkReserve,
- createFakebankReserve,
+ createTestingReserve,
CryptoDispatcher,
depositCoin,
downloadExchangeInfo,
@@ -72,10 +72,10 @@ export async function runBench2(configJson: any): Promise<void> {
console.log("creating fakebank reserve");
- await createFakebankReserve({
+ await createTestingReserve({
amount: `${curr}:${reserveAmount}`,
exchangeInfo,
- fakebankBaseUrl: benchConf.bank,
+ corebankApiBaseUrl: benchConf.bank,
http,
reservePub: reserveKeyPair.pub,
});
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts
index 69c6427ca..fae91be52 100644
--- a/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts
+++ b/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts
@@ -29,6 +29,8 @@ import {
j2s,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
+import * as http from "node:http";
+import { defaultCoinConfig } from "../harness/denomStructures.js";
import {
BankService,
ExchangeService,
@@ -38,8 +40,6 @@ import {
setupDb,
} from "../harness/harness.js";
import { createWalletDaemonWithClient } from "../harness/helpers.js";
-import { defaultCoinConfig } from "../harness/denomStructures.js";
-import * as http from "node:http";
const logger = new Logger("test-withdrawal-conversion.ts");