diff options
author | Florian Dold <florian@dold.me> | 2024-07-08 14:40:25 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-07-08 14:40:25 +0200 |
commit | 86f045f6730bea2a02398326602efac9a81b1687 (patch) | |
tree | e0e4dedabb6a2bf84d5828362d83d3954c895ebc /packages/taler-harness | |
parent | e37fa59b6d9606c09ca447bc3a3fb73d61bd6de1 (diff) |
util: towards API type decl reorg
Diffstat (limited to 'packages/taler-harness')
-rw-r--r-- | packages/taler-harness/src/bench2.ts | 9 | ||||
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts | 12 |
2 files changed, 9 insertions, 12 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts index dc360ae62..3caf28c1f 100644 --- a/packages/taler-harness/src/bench2.ts +++ b/packages/taler-harness/src/bench2.ts @@ -27,7 +27,6 @@ import { } from "@gnu-taler/taler-util"; import { createPlatformHttpLib } from "@gnu-taler/taler-util/http"; import { - applyRunConfigDefaults, CryptoDispatcher, SynchronousCryptoWorkerFactoryPlain, } from "@gnu-taler/taler-wallet-core"; @@ -67,7 +66,7 @@ export async function runBench2(configJson: any): Promise<void> { const reserveAmount = (numDeposits + 1) * 10; - const defaultConfig = applyRunConfigDefaults(); + const denomselAllowLate = false; for (let i = 0; i < numIter; i++) { const exchangeInfo = await downloadExchangeInfo(benchConf.exchange, http); @@ -91,7 +90,7 @@ export async function runBench2(configJson: any): Promise<void> { console.log("reserve found"); const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8` as AmountString, { - denomselAllowLate: defaultConfig.testing.denomselAllowLate, + denomselAllowLate, }); for (let j = 0; j < numDeposits; j++) { @@ -120,10 +119,10 @@ export async function runBench2(configJson: any): Promise<void> { const refreshDenoms = [ findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, { - denomselAllowLate: defaultConfig.testing.denomselAllowLate, + denomselAllowLate, }), findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, { - denomselAllowLate: defaultConfig.testing.denomselAllowLate, + denomselAllowLate, }), ]; diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts index c55e1faf0..6256d3843 100644 --- a/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts +++ b/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts @@ -33,9 +33,8 @@ import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import * as http from "node:http"; import { defaultCoinConfig } from "../harness/denomStructures.js"; import { - BankService, + BankService, ExchangeService, - FakebankService, GlobalTestState, HarnessExchangeBankAccount, MerchantService, @@ -104,7 +103,7 @@ async function runTestfakeConversionService(): Promise<TestfakeConversionService cashout_rounding_mode: "zero", cashout_tiny_amount: "A:1" as AmountString, }, - } satisfies TalerBankConversionApi.IntegrationConfig), + } satisfies TalerBankConversionApi.TalerConversionInfoConfig), ); } else if (path === "/cashin-rate") { res.writeHead(200, { "Content-Type": "application/json" }); @@ -219,10 +218,9 @@ export async function runWithdrawalConversionTest(t: GlobalTestState) { ), }); - const { walletClient } = await createWalletDaemonWithClient( - t, - { name: "wallet" }, - ); + const { walletClient } = await createWalletDaemonWithClient(t, { + name: "wallet", + }); await runTestfakeConversionService(); |