From f93ab03a1b946af441e35b9c057f129d25311273 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 1 Jul 2023 00:52:14 +0200 Subject: wallet-core: get rid of internal runUntilDone usages --- packages/taler-wallet-embedded/src/wallet-qjs.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-embedded/src') diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts index e6456c930..2b1c8a108 100644 --- a/packages/taler-wallet-embedded/src/wallet-qjs.ts +++ b/packages/taler-wallet-embedded/src/wallet-qjs.ts @@ -214,7 +214,13 @@ export function installNativeWalletListener(): void { globalThis.installNativeWalletListener = installNativeWalletListener; export async function testWithGv() { - const w = await createNativeWalletHost2(); + const w = await createNativeWalletHost2({ + config: { + features: { + allowHttp: true, + }, + }, + }); await w.wallet.client.call(WalletApiOperation.InitWallet, {}); await w.wallet.client.call(WalletApiOperation.RunIntegrationTest, { amountToSpend: "KUDOS:1", @@ -233,13 +239,18 @@ export async function testWithLocal() { console.log("running local test"); const w = await createNativeWalletHost2({ persistentStoragePath: "walletdb.json", + config: { + features: { + allowHttp: true, + }, + }, }); console.log("created wallet"); await w.wallet.client.call(WalletApiOperation.InitWallet, { skipDefaults: true, }); console.log("initialized wallet"); - await w.wallet.client.call(WalletApiOperation.RunIntegrationTest, { + await w.wallet.client.call(WalletApiOperation.RunIntegrationTestV2, { amountToSpend: "TESTKUDOS:1", amountToWithdraw: "TESTKUDOS:3", bankAccessApiBaseUrl: "http://localhost:8082/taler-bank-access/", -- cgit v1.2.3