diff options
author | Sebastian <sebasjm@gmail.com> | 2023-07-03 12:44:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-07-03 12:44:20 -0300 |
commit | f407ab202317c188085cce4df90c3e24da3d4e31 (patch) | |
tree | 1bf72bc41fbdf20b8c305ad5764bea0b5eef8b0d /packages/taler-harness/src/harness/helpers.ts | |
parent | 545bf16cdfa824778c1450e64eaea236b9d81c49 (diff) | |
download | wallet-core-f407ab202317c188085cce4df90c3e24da3d4e31.tar.xz |
fix #7741
add integration test
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!"); |