diff options
Diffstat (limited to 'packages/taler-harness/src')
6 files changed, 10 insertions, 10 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts b/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts index 0bb811f39..eae04cd2e 100644 --- a/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts +++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts @@ -59,7 +59,7 @@ export async function runAgeRestrictionsPeerTest(t: GlobalTestState) { restrictAge: 13, }); - const purse_expiration = AbsoluteTime.toTimestamp( + const purse_expiration = AbsoluteTime.toProtocolTimestamp( AbsoluteTime.addDuration( AbsoluteTime.now(), Duration.fromSpec({ days: 2 }), diff --git a/packages/taler-harness/src/integrationtests/test-exchange-timetravel.ts b/packages/taler-harness/src/integrationtests/test-exchange-timetravel.ts index 7f94628a6..dee00d1ff 100644 --- a/packages/taler-harness/src/integrationtests/test-exchange-timetravel.ts +++ b/packages/taler-harness/src/integrationtests/test-exchange-timetravel.ts @@ -177,7 +177,7 @@ export async function runExchangeTimetravelTest(t: GlobalTestState) { return { denomPub: x.denom_pub, expireDeposit: AbsoluteTime.stringify( - AbsoluteTime.fromTimestamp(x.stamp_expire_deposit), + AbsoluteTime.fromProtocolTimestamp(x.stamp_expire_deposit), ), }; }); @@ -186,7 +186,7 @@ export async function runExchangeTimetravelTest(t: GlobalTestState) { return { denomPub: x.denom_pub, expireDeposit: AbsoluteTime.stringify( - AbsoluteTime.fromTimestamp(x.stamp_expire_deposit), + AbsoluteTime.fromProtocolTimestamp(x.stamp_expire_deposit), ), }; }); @@ -196,7 +196,7 @@ export async function runExchangeTimetravelTest(t: GlobalTestState) { console.log( "list issue date", - AbsoluteTime.stringify(AbsoluteTime.fromTimestamp(keys1.list_issue_date)), + AbsoluteTime.stringify(AbsoluteTime.fromProtocolTimestamp(keys1.list_issue_date)), ); console.log("num denoms", keys1.denoms.length); console.log("denoms", JSON.stringify(denomPubs1, undefined, 2)); @@ -205,7 +205,7 @@ export async function runExchangeTimetravelTest(t: GlobalTestState) { console.log( "list issue date", - AbsoluteTime.stringify(AbsoluteTime.fromTimestamp(keys2.list_issue_date)), + AbsoluteTime.stringify(AbsoluteTime.fromProtocolTimestamp(keys2.list_issue_date)), ); console.log("num denoms", keys2.denoms.length); console.log("denoms", JSON.stringify(denomPubs2, undefined, 2)); @@ -227,7 +227,7 @@ export async function runExchangeTimetravelTest(t: GlobalTestState) { ); console.log( `the new /keys response was issued ${AbsoluteTime.stringify( - AbsoluteTime.fromTimestamp(keys2.list_issue_date), + AbsoluteTime.fromProtocolTimestamp(keys2.list_issue_date), )}`, ); console.log( diff --git a/packages/taler-harness/src/integrationtests/test-libeufin-basic.ts b/packages/taler-harness/src/integrationtests/test-libeufin-basic.ts index a58429245..f03b63f50 100644 --- a/packages/taler-harness/src/integrationtests/test-libeufin-basic.ts +++ b/packages/taler-harness/src/integrationtests/test-libeufin-basic.ts @@ -275,7 +275,7 @@ export async function runLibeufinBasicTest(t: GlobalTestState) { summary: "Buy me!", amount: "EUR:5", fulfillment_url: "taler://fulfillment-success/thx", - wire_transfer_deadline: AbsoluteTime.toTimestamp(AbsoluteTime.now()), + wire_transfer_deadline: AbsoluteTime.toProtocolTimestamp(AbsoluteTime.now()), }; await makeTestPayment(t, { wallet, merchant, order }); diff --git a/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts b/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts index 58a1f271e..557954f66 100644 --- a/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts +++ b/packages/taler-harness/src/integrationtests/test-peer-to-peer-pull.ts @@ -75,7 +75,7 @@ export async function runPeerToPeerPullTest(t: GlobalTestState) { await withdrawalDoneCond; - const purse_expiration = AbsoluteTime.toTimestamp( + const purse_expiration = AbsoluteTime.toProtocolTimestamp( AbsoluteTime.addDuration( AbsoluteTime.now(), Duration.fromSpec({ days: 2 }), diff --git a/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts b/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts index 60ccce000..b179f6722 100644 --- a/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts +++ b/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts @@ -47,7 +47,7 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { await wallet1.runUntilDone(); - const purse_expiration = AbsoluteTime.toTimestamp( + const purse_expiration = AbsoluteTime.toProtocolTimestamp( AbsoluteTime.addDuration( AbsoluteTime.now(), Duration.fromSpec({ days: 2 }), diff --git a/packages/taler-harness/src/integrationtests/test-refund-gone.ts b/packages/taler-harness/src/integrationtests/test-refund-gone.ts index 7bebd6239..5f226c7dd 100644 --- a/packages/taler-harness/src/integrationtests/test-refund-gone.ts +++ b/packages/taler-harness/src/integrationtests/test-refund-gone.ts @@ -50,7 +50,7 @@ export async function runRefundGoneTest(t: GlobalTestState) { summary: "Buy me!", amount: "TESTKUDOS:5", fulfillment_url: "taler://fulfillment-success/thx", - pay_deadline: AbsoluteTime.toTimestamp( + pay_deadline: AbsoluteTime.toProtocolTimestamp( AbsoluteTime.addDuration( AbsoluteTime.now(), durationFromSpec({ |