From 0ff387c6f5aa5ecec5435acac331982c659c8b49 Mon Sep 17 00:00:00 2001 From: MS Date: Fri, 18 Sep 2020 19:15:20 +0200 Subject: [PATCH] fix bank invocation, skip tests when not present. --- package.json | 2 +- packages/taler-integrationtests/src/harness.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7d0bc7f44..1f5c01781 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,6 @@ "compile": "pnpm run --filter '{packages}' compile", "clean": "pnpm run --filter '{packages}' clean", "pretty": "pnpm run --filter '{packages}' pretty", - "check": "pnpm run --filter '{packages}' test" + "check": "pnpm run --filter '{packages}' --if-present test" } } diff --git a/packages/taler-integrationtests/src/harness.ts b/packages/taler-integrationtests/src/harness.ts index a25ee90b1..bb9e42120 100644 --- a/packages/taler-integrationtests/src/harness.ts +++ b/packages/taler-integrationtests/src/harness.ts @@ -642,6 +642,7 @@ export class BankService implements BankServiceInterface { config.setString("taler", "currency", bc.currency); config.setString("bank", "database", bc.database); config.setString("bank", "http_port", `${bc.httpPort}`); + config.setString("bank", "serve", "http"); config.setString("bank", "max_debt_bank", `${bc.currency}:999999`); config.setString("bank", "max_debt", bc.maxDebt ?? `${bc.currency}:100`); config.setString( @@ -716,7 +717,7 @@ export class BankService implements BankServiceInterface { async start(): Promise { this.proc = this.globalTestState.spawnService( "taler-bank-manage", - ["-c", this.configFile, "serve-http"], + ["-c", this.configFile, "serve"], "bank", ); }