fix instance creation order

This commit is contained in:
Florian Dold 2021-05-21 12:03:09 +02:00
parent 4414f738ef
commit 0e0d5fa3b4
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 9 additions and 8 deletions

View File

@ -830,7 +830,7 @@ testCli
help: "Glob pattern to select which tests to run",
})
.maybeOption("suites", ["--suites"], clk.STRING, {
help: "Only run selected suites (string-separated list)",
help: "Only run selected suites (comma-separated list)",
})
.flag("dryRun", ["--dry"], {
help: "Only print tests that will be selected to run.",

View File

@ -103,18 +103,19 @@ export async function createConfusedMerchantTestkudosEnvironment(
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

@ -118,7 +118,7 @@ export async function runMerchantInstancesDeleteTest(t: GlobalTestState) {
const exc = await t.assertThrowsAsync(async () => {
await unauthMerchantClient.deleteInstance("myinst");
});
console.log(exc);
console.log("Got expected exception", exc);
t.assertAxiosError(exc);
t.assertDeepEqual(exc.response?.status, 401);
}