gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (a8ac8d29 -> f234eef4)


From: gnunet
Subject: [taler-wallet-core] branch master updated (a8ac8d29 -> f234eef4)
Date: Fri, 05 Feb 2021 12:11:02 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a change to branch master
in repository wallet-core.

    from a8ac8d29 formatting code
     new 8fe6cff2 fix payment-fault test case (only drop deposit responses)
     new f234eef4 increase pay timeout

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../taler-wallet-cli/src/integrationtests/test-payment-fault.ts    | 7 ++++---
 packages/taler-wallet-core/src/operations/pay.ts                   | 4 ++--
 2 files changed, 6 insertions(+), 5 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();
 
diff --git a/packages/taler-wallet-core/src/operations/pay.ts 
b/packages/taler-wallet-core/src/operations/pay.ts
index d8168acd..cccbb3ca 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -677,8 +677,8 @@ function getProposalRequestTimeout(proposal: 
ProposalRecord): Duration {
 
 function getPayRequestTimeout(purchase: PurchaseRecord): Duration {
   return durationMul(
-    { d_ms: 5000 },
-    1 + purchase.payCoinSelection.coinPubs.length / 20,
+    { d_ms: 15000 },
+    1 + purchase.payCoinSelection.coinPubs.length / 5,
   );
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]