aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/test-payment-fault.ts7
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();