harness: run without throttling, make fakebank issue reproducible

This commit is contained in:
Florian Dold 2023-02-10 00:50:22 +01:00
parent 1a3040d872
commit c4180e1290
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 11 additions and 12 deletions

View File

@ -1940,7 +1940,15 @@ export class WalletService {
const unixPath = this.socketPath;
this.globalState.spawnService(
"taler-wallet-cli",
["--wallet-db", dbPath, "advanced", "serve", "--unix-path", unixPath],
[
"--wallet-db",
dbPath,
"--no-throttle", // FIXME: Optionally do throttling for some tests?
"advanced",
"serve",
"--unix-path",
unixPath,
],
`wallet-${this.opts.name}`,
);
}

View File

@ -93,8 +93,6 @@ export async function runWithdrawalHugeTest(t: GlobalTestState) {
bank: bank.baseUrl,
});
await exchange.runWirewatchOnce();
await withdrawalFinishedCond;
// Check balance

View File

@ -24,7 +24,6 @@ import {
clk,
codecForList,
codecForString,
CoreApiRequestEnvelope,
CoreApiResponse,
decodeCrock,
encodeCrock,
@ -39,12 +38,7 @@ import {
TalerUriType,
WalletNotification,
} from "@gnu-taler/taler-util";
import {
OpenedPromise,
openPromise,
TalerCryptoInterface,
TalerError,
} from "@gnu-taler/taler-wallet-core";
import { JsonMessage, runRpcServer } from "@gnu-taler/taler-util/twrpc";
import {
CryptoDispatcher,
getDefaultNodeWallet,
@ -55,12 +49,12 @@ import {
NodeThreadCryptoWorkerFactory,
summarizeTalerErrorDetail,
SynchronousCryptoWorkerFactoryNode,
TalerCryptoInterface,
Wallet,
WalletApiOperation,
WalletCoreApiClient,
walletCoreDebugFlags,
} from "@gnu-taler/taler-wallet-core";
import {
createRemoteWallet,
getClientFromRemoteWallet,
@ -68,7 +62,6 @@ import {
} from "@gnu-taler/taler-wallet-core/remote";
import fs from "fs";
import os from "os";
import { JsonMessage, runRpcServer } from "@gnu-taler/taler-util/twrpc";
// This module also serves as the entry point for the crypto
// thread worker, and thus must expose these two handlers.