commit 8427c7b15e0ddf855be9c92f8f563654fc7c8f04 parent 53bace0191f0694d05875225c5b4593c8b3b8dbc Author: Florian Dold <florian@dold.me> Date: Mon, 8 Sep 2025 20:05:47 +0200 harness: tolerate more error codes in libeufin-conversion test Diffstat:
| M | packages/taler-harness/src/integrationtests/test-libeufin-conversion.ts | | | 13 | +++++++++---- |
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/packages/taler-harness/src/integrationtests/test-libeufin-conversion.ts b/packages/taler-harness/src/integrationtests/test-libeufin-conversion.ts @@ -227,10 +227,15 @@ export async function runLibeufinConversionTest(t: GlobalTestState) { console.log(j2s(detRes)); - t.assertDeepEqual( - detRes.withdrawalAccountsList[0].conversionError?.code, - TalerErrorCode.BANK_CONVERSION_AMOUNT_TO_SMALL, - ); + const ec = detRes.withdrawalAccountsList[0].conversionError?.code; + + switch (ec) { + case TalerErrorCode.BANK_CONVERSION_AMOUNT_TO_SMALL: + case TalerErrorCode.BANK_BAD_CONVERSION: + break; + default: + t.fail(`unexpected conversion error code: ${ec}`); + } } runLibeufinConversionTest.suites = ["fakebank"];