diff options
author | Florian Dold <florian@dold.me> | 2022-03-22 23:03:41 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-03-22 23:03:41 +0100 |
commit | 739c2f933770206b173a9b3cbafa79ee6048ff9d (patch) | |
tree | aaae15f5f22a0fe1a8449494a50477ca9ed3a0a5 /packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts | |
parent | 5d23eb36354d07508a015531f298b3e261bbafce (diff) | |
download | wallet-core-739c2f933770206b173a9b3cbafa79ee6048ff9d.tar.xz |
wallet: more time format fixes
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts | 13 |
1 files changed, 6 insertions, 7 deletions
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 24600384b..b6cefda86 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts @@ -25,6 +25,7 @@ import { } from "../harness/helpers.js"; import { AbsoluteTime, + Duration, durationFromSpec, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; @@ -35,12 +36,8 @@ import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; export async function runRefundGoneTest(t: GlobalTestState) { // Set up test environment - const { - wallet, - bank, - exchange, - merchant, - } = await createSimpleTestkudosEnvironment(t); + const { wallet, bank, exchange, merchant } = + await createSimpleTestkudosEnvironment(t); // Withdraw digital cash into the wallet. @@ -62,7 +59,9 @@ export async function runRefundGoneTest(t: GlobalTestState) { ), ), }, - refund_delay: durationFromSpec({ minutes: 1 }), + refund_delay: Duration.toTalerProtocolDuration( + durationFromSpec({ minutes: 1 }), + ), }); let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { |