taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 57fe4ca6d3758fcc85fd579e0c558ff4c6b105de
parent 5d969971bb22ec1c72e3f9fc442f654753dc2007
Author: Florian Dold <florian@dold.me>
Date:   Thu, 18 Dec 2025 16:15:57 +0100

harness: improve logging

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-tops-peer.ts | 3+++
Mpackages/taler-harness/src/integrationtests/testrunner.ts | 4+++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/packages/taler-harness/src/integrationtests/test-tops-peer.ts b/packages/taler-harness/src/integrationtests/test-tops-peer.ts @@ -118,12 +118,15 @@ export async function runTopsPeerTest(t: GlobalTestState) { await walletClient.call(WalletApiOperation.TestingWaitTransactionState, { transactionId: prepareResp.transactionId, + timeout: { seconds: 10 }, txState: { major: TransactionMajorState.Pending, minor: TransactionMinorState.MergeKycRequired, }, }); + t.logStep("p2p merge kyc required"); + const pushCreditTxDet = await walletClient.call( WalletApiOperation.GetTransactionById, { diff --git a/packages/taler-harness/src/integrationtests/testrunner.ts b/packages/taler-harness/src/integrationtests/testrunner.ts @@ -16,9 +16,11 @@ import { CancellationToken, + j2s, Logger, minimatch, setGlobalLogLevelFromString, + TalerError, } from "@gnu-taler/taler-util"; import * as child_process from "child_process"; import { spawnSync } from "child_process"; @@ -685,7 +687,6 @@ export async function runTests(spec: TestRunSpec) { throw Error("exit on fail fast"); } } catch (e: any) { - console.error(`test ${testName} timed out`); if (token.isCancelled) { result = { status: "fail", @@ -695,6 +696,7 @@ export async function runTests(spec: TestRunSpec) { }; currentChild.kill("SIGTERM"); } else { + logger.error(`test failed: ${j2s(TalerError.fromException(e))}`); throw Error(e); } }