fix merchant instance creation in some tests

This commit is contained in:
Florian Dold 2021-06-10 10:00:36 +02:00
parent 0ee44c3a58
commit 67e5d68b93
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 8 additions and 7 deletions

View File

@ -192,6 +192,7 @@ async function withWallet<T>(
}
process.exit(1);
} finally {
logger.info("operation with wallet finished, stopping");
wallet.stop();
}
}

View File

@ -218,18 +218,18 @@ export async function createFaultInjectedMerchantTestkudosEnvironment(
await merchant.start();
await merchant.pingUntilAvailable();
await merchant.addInstance({
id: "minst1",
name: "minst1",
paytoUris: ["payto://x-taler-bank/minst1"],
});
await merchant.addInstance({
id: "default",
name: "Default Instance",
paytoUris: [`payto://x-taler-bank/merchant-default`],
});
await merchant.addInstance({
id: "minst1",
name: "minst1",
paytoUris: ["payto://x-taler-bank/minst1"],
});
console.log("setup done!");
const wallet = new WalletCli(t);

View File

@ -1756,7 +1756,7 @@ export const WalletStoresV1 = {
"byFulfillmentUrl",
"download.contractData.fulfillmentUrl",
),
byMerchantUrlAndOrderId: describeIndex("byOrderId", [
byMerchantUrlAndOrderId: describeIndex("byMerchantUrlAndOrderId", [
"download.contractData.merchantBaseUrl",
"download.contractData.orderId",
]),