gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: fix two bogus test assertions


From: gnunet
Subject: [taler-wallet-core] branch master updated: fix two bogus test assertions
Date: Fri, 09 Apr 2021 16:44:02 +0200

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

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

The following commit(s) were added to refs/heads/master by this push:
     new f30f923e fix two bogus test assertions
f30f923e is described below

commit f30f923e15adcb7242cfba565cd0c7e1e8666f8e
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Apr 9 16:43:57 2021 +0200

    fix two bogus test assertions
---
 .../src/integrationtests/test-merchant-instances.ts               | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts 
b/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts
index eb171747..539203b9 100644
--- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts
@@ -124,11 +124,13 @@ export async function runMerchantInstancesTest(t: 
GlobalTestState) {
   const exc = await t.assertThrowsAsync(async () => {
     console.log("requesting instances with auth", merchantClient.auth);
     const resp = await merchantClient.getInstances();
-    console.log("axios result:", resp);
+    console.log("instances result:", resp);
   });
 
+  console.log(exc);
+
   t.assertAxiosError(exc);
-  t.assertAxiosError(exc.response?.status === 401);
+  t.assertTrue(exc.response?.status === 401);
 
   merchantClient = new MerchantApiClient(merchant.makeInstanceBaseUrl(), {
     method: "token",
@@ -173,7 +175,7 @@ export async function runMerchantInstancesTest(t: 
GlobalTestState) {
     });
     console.log(exc);
     t.assertAxiosError(exc);
-    t.assertDeepEqual(exc.response?.status, 403);
+    t.assertDeepEqual(exc.response?.status, 401);
   }
 }
 

-- 
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]