diff options
author | Florian Dold <florian@dold.me> | 2021-08-04 17:47:28 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-04 17:47:28 +0200 |
commit | 17f2132b4a2a0b5f038347814bc859a035b2ad80 (patch) | |
tree | 8e1f3d2e4817c337afcce5229847bf74d15c8d40 /packages/taler-wallet-cli/src | |
parent | f88e14f66d37c339816cb9ba73a84491e7133307 (diff) | |
download | wallet-core-17f2132b4a2a0b5f038347814bc859a035b2ad80.tar.xz |
fix test expectation in merchant-refund-api
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts | 4 | ||||
-rw-r--r-- | packages/taler-wallet-cli/src/lint.ts | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts b/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts index 3e505d9ca..dc7863874 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts @@ -145,9 +145,7 @@ async function testRefundApiWithFulfillmentUrl( console.log(publicOrderStatusResp.status); console.log(publicOrderStatusResp.data); // We didn't give any authentication, so we should get a fulfillment URL back - t.assertTrue(publicOrderStatusResp.status === 202); - const fu = publicOrderStatusResp.data.fulfillment_url; - t.assertTrue(typeof fu === "string" && fu.startsWith("https://example.com")); + t.assertTrue(publicOrderStatusResp.status === 403); } async function testRefundApiWithFulfillmentMessage( diff --git a/packages/taler-wallet-cli/src/lint.ts b/packages/taler-wallet-cli/src/lint.ts index f7dfefe38..68d383b1d 100644 --- a/packages/taler-wallet-cli/src/lint.ts +++ b/packages/taler-wallet-cli/src/lint.ts @@ -274,7 +274,7 @@ export async function checkExchangeHttpd( * Do some basic checks in the configuration of a Taler deployment. */ export async function lintExchangeDeployment(): Promise<void> { - if (process.getuid() != 1) { + if (process.getuid() != 0) { console.log( "warning: the exchange deployment linter is designed to be run as root", ); |