aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-embedded/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-23 15:49:50 +0200
committerFlorian Dold <florian@dold.me>2024-04-23 15:49:59 +0200
commit2b8ae6381776b0d6fc9cc8c0b8275fbdc6d3295b (patch)
treeeec3ba940c2f8c486021b74eed3d8ba56c844187 /packages/taler-wallet-embedded/src
parentf9f109b08b3af89081521bc6b60b9cdc0034450a (diff)
-embedded
Diffstat (limited to 'packages/taler-wallet-embedded/src')
-rw-r--r--packages/taler-wallet-embedded/src/wallet-qjs.ts16
1 files changed, 6 insertions, 10 deletions
diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts
index 4441ac8c1..98b73fc44 100644
--- a/packages/taler-wallet-embedded/src/wallet-qjs.ts
+++ b/packages/taler-wallet-embedded/src/wallet-qjs.ts
@@ -98,13 +98,9 @@ class NativeWalletMessageHandler {
const wR = await createNativeWalletHost2(this.walletArgs);
const w = wR.wallet;
this.maybeWallet = w;
- const resp = await w.handleCoreApiRequest(
- "initWallet",
- "native-init",
- {
- config: this.walletConfig
- },
- );
+ const resp = await w.handleCoreApiRequest("initWallet", "native-init", {
+ config: this.walletConfig,
+ });
initResponse = resp.type == "response" ? resp.result : resp.error;
this.wp.resolve(w);
};
@@ -292,7 +288,7 @@ export async function testWithGv() {
merchantAuthToken: "secret-token:sandbox",
});
await w.wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {});
- w.wallet.stop();
+ await w.wallet.client.call(WalletApiOperation.Shutdown, {});
}
export async function testWithFdold() {
@@ -312,7 +308,7 @@ export async function testWithFdold() {
merchantBaseUrl: "https://merchant.taler.fdold.eu/",
});
await w.wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {});
- w.wallet.stop();
+ await w.wallet.client.call(WalletApiOperation.Shutdown, {});
}
export async function testWithLocal(path: string) {
@@ -342,7 +338,7 @@ export async function testWithLocal(path: string) {
console.log("started integration test");
await w.wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {});
console.log("done with task loop");
- w.wallet.stop();
+ await w.wallet.client.call(WalletApiOperation.Shutdown, {});
console.log("DB stats:", j2s(w.getDbStats()));
}