diff options
author | Florian Dold <florian@dold.me> | 2021-02-05 11:56:17 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-05 11:56:25 +0100 |
commit | 8fe6cff29761f605dedd67d9dce6d01db7e1c5b8 (patch) | |
tree | 45b69205276096d588c531672d2b2f76d29ccba3 | |
parent | a8ac8d2925dbcaedb30ce279ca52dc4686e33325 (diff) |
fix payment-fault test case (only drop deposit responses)
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-payment-fault.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-payment-fault.ts b/packages/taler-wallet-cli/src/integrationtests/test-payment-fault.ts index 3b96ac03c..4462b4ff9 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-payment-fault.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-payment-fault.ts @@ -146,8 +146,7 @@ export async function runPaymentFaultTest(t: GlobalTestState) { // Check balance - const balApiResp = await wallet.apiRequest("getBalances", {}); - t.assertTrue(balApiResp.type === "response"); + await wallet.getBalances(); // Set up order. @@ -182,6 +181,9 @@ export async function runPaymentFaultTest(t: GlobalTestState) { let faultCount = 0; faultyExchange.faultProxy.addFault({ modifyResponse(ctx: FaultInjectionResponseContext) { + if (!ctx.request.requestUrl.endsWith("/deposit")) { + return; + } if (faultCount < 3) { faultCount++; ctx.dropResponse = true; @@ -195,7 +197,6 @@ export async function runPaymentFaultTest(t: GlobalTestState) { // FIXME: should be validated, don't cast! proposalId: proposalId, }); - t.assertTrue(apiResp.type === "error"); await wallet.runUntilDone(); |