diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests')
4 files changed, 9 insertions, 10 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts b/packages/taler-wallet-cli/src/integrationtests/harness.ts index fef4c27c1..10b93b330 100644 --- a/packages/taler-wallet-cli/src/integrationtests/harness.ts +++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts @@ -76,8 +76,8 @@ export async function delayMs(ms: number): Promise<void> { } export interface WithAuthorization { - Authorization?: string, -} ; + Authorization?: string; +} interface WaitResult { code: number | null; @@ -1220,7 +1220,9 @@ export namespace MerchantPrivateApi { ): Promise<PostOrderResponse> { const baseUrl = merchantService.makeInstanceBaseUrl(instanceName); let url = new URL("private/orders", baseUrl); - const resp = await axios.post(url.href, req, { headers: withAuthorization }); + const resp = await axios.post(url.href, req, { + headers: withAuthorization, + }); return codecForPostOrderResponse().decode(resp.data); } @@ -1395,10 +1397,8 @@ export class MerchantService implements MerchantServiceInterface { } } - async start( - withResetTables: boolean = true, // eventually, this should become a named parameter - ): Promise<void> { - await exec(`taler-merchant-dbinit ${withResetTables ? "-r" : ""} -c "${this.configFilename}"`); + async start(): Promise<void> { + await exec(`taler-merchant-dbinit -c "${this.configFilename}"`); this.proc = this.globalState.spawnService( "taler-merchant-httpd", diff --git a/packages/taler-wallet-cli/src/integrationtests/sync.ts b/packages/taler-wallet-cli/src/integrationtests/sync.ts index 73d3c9ddf..90e6c1391 100644 --- a/packages/taler-wallet-cli/src/integrationtests/sync.ts +++ b/packages/taler-wallet-cli/src/integrationtests/sync.ts @@ -17,7 +17,6 @@ /** * Imports. */ -import axios from "axios"; import { URL } from "@gnu-taler/taler-util"; import * as fs from "fs"; import * as util from "util"; diff --git a/packages/taler-wallet-cli/src/integrationtests/test-revocation.ts b/packages/taler-wallet-cli/src/integrationtests/test-revocation.ts index 0b5c47551..fc1ffb267 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-revocation.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-revocation.ts @@ -53,7 +53,7 @@ async function revokeAllWalletCoins(req: { await exchange.keyup(); await delayMs(1000); await merchant.stop(); - await merchant.start(false); // 'false' prevents DB reset + await merchant.start(); await merchant.pingUntilAvailable(); } diff --git a/packages/taler-wallet-cli/src/integrationtests/test-tipping.ts b/packages/taler-wallet-cli/src/integrationtests/test-tipping.ts index 3eb8109e5..2421b462f 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-tipping.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-tipping.ts @@ -64,7 +64,7 @@ export async function runTippingTest(t: GlobalTestState) { await exchange.runWirewatchOnce(); await merchant.stop(); - await merchant.start(false); + await merchant.start(); await merchant.pingUntilAvailable(); const r = await MerchantPrivateApi.queryTippingReserves(merchant, "default"); |