fix instance creation order
This commit is contained in:
parent
4414f738ef
commit
0e0d5fa3b4
@ -830,7 +830,7 @@ testCli
|
|||||||
help: "Glob pattern to select which tests to run",
|
help: "Glob pattern to select which tests to run",
|
||||||
})
|
})
|
||||||
.maybeOption("suites", ["--suites"], clk.STRING, {
|
.maybeOption("suites", ["--suites"], clk.STRING, {
|
||||||
help: "Only run selected suites (string-separated list)",
|
help: "Only run selected suites (comma-separated list)",
|
||||||
})
|
})
|
||||||
.flag("dryRun", ["--dry"], {
|
.flag("dryRun", ["--dry"], {
|
||||||
help: "Only print tests that will be selected to run.",
|
help: "Only print tests that will be selected to run.",
|
||||||
|
@ -103,18 +103,19 @@ export async function createConfusedMerchantTestkudosEnvironment(
|
|||||||
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);
|
||||||
|
@ -118,7 +118,7 @@ export async function runMerchantInstancesDeleteTest(t: GlobalTestState) {
|
|||||||
const exc = await t.assertThrowsAsync(async () => {
|
const exc = await t.assertThrowsAsync(async () => {
|
||||||
await unauthMerchantClient.deleteInstance("myinst");
|
await unauthMerchantClient.deleteInstance("myinst");
|
||||||
});
|
});
|
||||||
console.log(exc);
|
console.log("Got expected exception", exc);
|
||||||
t.assertAxiosError(exc);
|
t.assertAxiosError(exc);
|
||||||
t.assertDeepEqual(exc.response?.status, 401);
|
t.assertDeepEqual(exc.response?.status, 401);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user