[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: fix payment-fault test case (only drop deposi
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: fix payment-fault test case (only drop deposit responses) |
Date: |
Fri, 05 Feb 2021 12:11:03 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 8fe6cff29761f605dedd67d9dce6d01db7e1c5b8
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Feb 5 11:56:17 2021 +0100
fix payment-fault test case (only drop deposit responses)
---
.../taler-wallet-cli/src/integrationtests/test-payment-fault.ts | 7 ++++---
1 file 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 3b96ac03..4462b4ff 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();
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.