aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-11-11 14:50:01 -0300
committerSebastian <sebasjm@gmail.com>2022-11-11 14:50:01 -0300
commit22290020fba91253c9885eb9fa193a0dd98fa72f (patch)
tree269d57fa6f25811c9aef70b597ef993a1427aa83 /packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
parent9ec34480768fa9709cbee8d4b70118d31b379795 (diff)
downloadwallet-core-22290020fba91253c9885eb9fa193a0dd98fa72f.tar.xz
fix integration after changes in 5c742afb
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts')
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts b/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
index 3d160ca08..af5b4df52 100644
--- a/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
@@ -17,6 +17,7 @@
/**
* Imports.
*/
+import { AbsoluteTime, Duration } from "@gnu-taler/taler-util";
import { getDefaultNodeWallet2, WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { defaultCoinConfig } from "../harness/denomStructures.js";
import { GlobalTestState, WalletCli } from "../harness/harness.js";
@@ -59,10 +60,18 @@ export async function runAgeRestrictionsPeerTest(t: GlobalTestState) {
restrictAge: 13,
});
+ const purse_expiration = AbsoluteTime.toTimestamp(
+ AbsoluteTime.addDuration(
+ AbsoluteTime.now(),
+ Duration.fromSpec({ days: 2 }),
+ ),
+ );
+
const initResp = await wallet.client.call(WalletApiOperation.InitiatePeerPushPayment, {
- amount: "TESTKUDOS:1",
partialContractTerms: {
summary: "Hello, World",
+ amount: "TESTKUDOS:1",
+ purse_expiration,
},
});