diff options
Diffstat (limited to 'packages/taler-harness/src/harness/harness.ts')
-rw-r--r-- | packages/taler-harness/src/harness/harness.ts | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index b0f411a8c..a2ff451d8 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -2179,6 +2179,20 @@ export class WalletService { return unixPath; } + get dbPath() { + return path.join( + this.globalState.testDir, + `walletdb-${this.opts.name}.json`, + ); + } + + async stop(): Promise<void> { + if (this.walletProc) { + this.walletProc.proc.kill("SIGTERM"); + await this.walletProc.wait(); + } + } + async start(): Promise<void> { let dbPath: string; if (this.opts.useInMemoryDb) { @@ -2190,7 +2204,7 @@ export class WalletService { ); } const unixPath = this.socketPath; - this.globalState.spawnService( + this.walletProc = this.globalState.spawnService( "taler-wallet-cli", [ "--wallet-db", |