diff options
author | Florian Dold <florian@dold.me> | 2021-11-24 01:57:11 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-11-24 01:57:11 +0100 |
commit | 7fac3bd17d2c3e4c74cf57aab976e704aa0d653e (patch) | |
tree | ad52e2668effc1eb52703eafa31ff6d89d8cd214 /packages/taler-wallet-cli | |
parent | ae8af3f27c0ed1746c49a7608fe05af24ae8a18b (diff) |
logging / explicit wire deadline
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts | 10 | ||||
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts index 6133bcc19..3f7e1a9d1 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts @@ -17,7 +17,12 @@ /** * Imports. */ -import { CoreApiResponse } from "@gnu-taler/taler-util"; +import { + ContractTerms, + CoreApiResponse, + getTimestampNow, + timestampTruncateToSecond, +} from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { CoinConfig, defaultCoinConfig } from "../harness/denomStructures"; import { @@ -272,10 +277,11 @@ export async function runLibeufinBasicTest(t: GlobalTestState) { console.log("balances", JSON.stringify(bal, undefined, 2)); t.assertAmountEquals(bal.balances[0].available, "EUR:14.7"); - const order = { + const order: Partial<ContractTerms> = { summary: "Buy me!", amount: "EUR:5", fulfillment_url: "taler://fulfillment-success/thx", + wire_transfer_deadline: timestampTruncateToSecond(getTimestampNow()), }; await makeTestPayment(t, { wallet, merchant, order }); diff --git a/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts b/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts index acb74b3d3..c6442a240 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts @@ -110,8 +110,8 @@ export async function runRefundGoneTest(t: GlobalTestState) { talerRefundUri: ref.talerRefundUri, }); + console.log("refund response:", rr); t.assertAmountEquals(rr.amountRefundGone, "TESTKUDOS:5"); - console.log(rr); await wallet.runUntilDone(); |