diff options
author | Florian Dold <florian@dold.me> | 2021-03-04 16:10:36 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-03-04 16:10:36 +0100 |
commit | 49b5d006db6639082eea10158e2da7cc13473c21 (patch) | |
tree | c37722792484acbd7090eb63e603aac05b7eea0d | |
parent | 90af26ace5d8b784330e53c672ce7a864c94cb18 (diff) |
deletion test: expect different status code
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-merchant-instances-delete.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances-delete.ts b/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances-delete.ts index e6f7d5741..77e0d1bd5 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances-delete.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances-delete.ts @@ -110,7 +110,8 @@ export async function runMerchantInstancesDeleteTest(t: GlobalTestState) { const unauthMerchantClient = new MerchantApiClient( merchant.makeInstanceBaseUrl(), { - method: "external", + method: "token", + token: "secret-token:invalid", }, ); @@ -119,7 +120,7 @@ export async function runMerchantInstancesDeleteTest(t: GlobalTestState) { }); console.log(exc); t.assertAxiosError(exc); - t.assertDeepEqual(exc.response?.status, 403); + t.assertDeepEqual(exc.response?.status, 401); } } |