fix bank invocation, skip tests when not present.

This commit is contained in:
MS 2020-09-18 19:15:20 +02:00
parent f73be00e0f
commit 0ff387c6f5
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,6 @@
"compile": "pnpm run --filter '{packages}' compile", "compile": "pnpm run --filter '{packages}' compile",
"clean": "pnpm run --filter '{packages}' clean", "clean": "pnpm run --filter '{packages}' clean",
"pretty": "pnpm run --filter '{packages}' pretty", "pretty": "pnpm run --filter '{packages}' pretty",
"check": "pnpm run --filter '{packages}' test" "check": "pnpm run --filter '{packages}' --if-present test"
} }
} }

View File

@ -642,6 +642,7 @@ export class BankService implements BankServiceInterface {
config.setString("taler", "currency", bc.currency); config.setString("taler", "currency", bc.currency);
config.setString("bank", "database", bc.database); config.setString("bank", "database", bc.database);
config.setString("bank", "http_port", `${bc.httpPort}`); 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_bank", `${bc.currency}:999999`);
config.setString("bank", "max_debt", bc.maxDebt ?? `${bc.currency}:100`); config.setString("bank", "max_debt", bc.maxDebt ?? `${bc.currency}:100`);
config.setString( config.setString(
@ -716,7 +717,7 @@ export class BankService implements BankServiceInterface {
async start(): Promise<void> { async start(): Promise<void> {
this.proc = this.globalTestState.spawnService( this.proc = this.globalTestState.spawnService(
"taler-bank-manage", "taler-bank-manage",
["-c", this.configFile, "serve-http"], ["-c", this.configFile, "serve"],
"bank", "bank",
); );
} }