aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-02-05 11:56:17 +0100
committerFlorian Dold <florian@dold.me>2021-02-05 11:56:25 +0100
commit8fe6cff29761f605dedd67d9dce6d01db7e1c5b8 (patch)
tree45b69205276096d588c531672d2b2f76d29ccba3 /packages/taler-wallet-cli
parenta8ac8d2925dbcaedb30ce279ca52dc4686e33325 (diff)
fix payment-fault test case (only drop deposit responses)
Diffstat (limited to 'packages/taler-wallet-cli')
-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();