diff options
Diffstat (limited to 'packages/taler-harness/src/harness/helpers.ts')
-rw-r--r-- | packages/taler-harness/src/harness/helpers.ts | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/packages/taler-harness/src/harness/helpers.ts b/packages/taler-harness/src/harness/helpers.ts index 8c62aef37..3e91c8bd9 100644 --- a/packages/taler-harness/src/harness/helpers.ts +++ b/packages/taler-harness/src/harness/helpers.ts @@ -298,22 +298,10 @@ export async function createSimpleTestkudosEnvironmentV2( ), }); - const walletService = new WalletService(t, { - name: "wallet", - }); - await walletService.start(); - await walletService.pingUntilAvailable(); - - const walletClient = new WalletClient({ - unixPath: walletService.socketPath, - onNotification(n) { - console.log("got notification", n); - }, - }); - await walletClient.connect(); - await walletClient.client.call(WalletApiOperation.InitWallet, { - skipDefaults: true, - }); + const { walletClient, walletService } = await createWalletDaemonWithClient( + t, + { name: "wallet" }, + ); console.log("setup done!"); |