fix merchant instance creation in some tests
This commit is contained in:
parent
0ee44c3a58
commit
67e5d68b93
@ -192,6 +192,7 @@ async function withWallet<T>(
|
|||||||
}
|
}
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
} finally {
|
} finally {
|
||||||
|
logger.info("operation with wallet finished, stopping");
|
||||||
wallet.stop();
|
wallet.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -218,18 +218,18 @@ export async function createFaultInjectedMerchantTestkudosEnvironment(
|
|||||||
await merchant.start();
|
await merchant.start();
|
||||||
await merchant.pingUntilAvailable();
|
await merchant.pingUntilAvailable();
|
||||||
|
|
||||||
await merchant.addInstance({
|
|
||||||
id: "minst1",
|
|
||||||
name: "minst1",
|
|
||||||
paytoUris: ["payto://x-taler-bank/minst1"],
|
|
||||||
});
|
|
||||||
|
|
||||||
await merchant.addInstance({
|
await merchant.addInstance({
|
||||||
id: "default",
|
id: "default",
|
||||||
name: "Default Instance",
|
name: "Default Instance",
|
||||||
paytoUris: [`payto://x-taler-bank/merchant-default`],
|
paytoUris: [`payto://x-taler-bank/merchant-default`],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await merchant.addInstance({
|
||||||
|
id: "minst1",
|
||||||
|
name: "minst1",
|
||||||
|
paytoUris: ["payto://x-taler-bank/minst1"],
|
||||||
|
});
|
||||||
|
|
||||||
console.log("setup done!");
|
console.log("setup done!");
|
||||||
|
|
||||||
const wallet = new WalletCli(t);
|
const wallet = new WalletCli(t);
|
||||||
|
@ -1756,7 +1756,7 @@ export const WalletStoresV1 = {
|
|||||||
"byFulfillmentUrl",
|
"byFulfillmentUrl",
|
||||||
"download.contractData.fulfillmentUrl",
|
"download.contractData.fulfillmentUrl",
|
||||||
),
|
),
|
||||||
byMerchantUrlAndOrderId: describeIndex("byOrderId", [
|
byMerchantUrlAndOrderId: describeIndex("byMerchantUrlAndOrderId", [
|
||||||
"download.contractData.merchantBaseUrl",
|
"download.contractData.merchantBaseUrl",
|
||||||
"download.contractData.orderId",
|
"download.contractData.orderId",
|
||||||
]),
|
]),
|
||||||
|
Loading…
Reference in New Issue
Block a user