diff options
author | Florian Dold <florian@dold.me> | 2021-04-08 16:31:43 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-04-08 16:31:43 +0200 |
commit | 15cecf126ad8f2a34ce76a02abfd648433b81cfb (patch) | |
tree | 5f7be3af0f5b9bb58ea15c88961ff58240890609 | |
parent | b2edad2dac37ae0b964f60ee912a01783b49e549 (diff) |
better logging
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/harness.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts b/packages/taler-wallet-cli/src/integrationtests/harness.ts index 65ffdafb5..9c7aa2852 100644 --- a/packages/taler-wallet-cli/src/integrationtests/harness.ts +++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts @@ -1189,7 +1189,7 @@ export interface MerchantServiceInterface { export class MerchantApiClient { constructor( private baseUrl: string, - private auth: MerchantAuthConfiguration, + public readonly auth: MerchantAuthConfiguration, ) {} async changeAuth(auth: MerchantAuthConfiguration): Promise<void> { 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 fe7f28b49..eb171747f 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts @@ -122,7 +122,9 @@ export async function runMerchantInstancesTest(t: GlobalTestState) { // Now this should fail, as we didn't change the auth of the client yet. const exc = await t.assertThrowsAsync(async () => { - await merchantClient.getInstances(); + console.log("requesting instances with auth", merchantClient.auth); + const resp = await merchantClient.getInstances(); + console.log("axios result:", resp); }); t.assertAxiosError(exc); @@ -137,7 +139,6 @@ export async function runMerchantInstancesTest(t: GlobalTestState) { await merchantClient.getInstances(); // Now, try some variations. - { const url = merchant.makeInstanceBaseUrl(); const resp = await axios.get(new URL("private/instances", url).href, { |