aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-embedded
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-07-01 00:52:14 +0200
committerFlorian Dold <florian@dold.me>2023-07-01 00:52:14 +0200
commitf93ab03a1b946af441e35b9c057f129d25311273 (patch)
tree063624453ae0b6a38f859bd530ab0a1e29db93fb /packages/taler-wallet-embedded
parent7a18e12a175856b3d17d2bb70ec549004c281ff5 (diff)
downloadwallet-core-f93ab03a1b946af441e35b9c057f129d25311273.tar.xz
wallet-core: get rid of internal runUntilDone usages
Diffstat (limited to 'packages/taler-wallet-embedded')
-rw-r--r--packages/taler-wallet-embedded/src/wallet-qjs.ts15
1 files changed, 13 insertions, 2 deletions
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/",