[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: harness: finish wire fees tes
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: harness: finish wire fees test |
Date: |
Thu, 07 Mar 2024 20:53:11 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 6ee95626c harness: finish wire fees test
6ee95626c is described below
commit 6ee95626c319c7f9e5b6d1ac4273d0de5db39ae0
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Mar 7 20:53:07 2024 +0100
harness: finish wire fees test
---
.../src/integrationtests/test-wallet-wirefees.ts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git
a/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts
b/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts
index 40880064b..618b8a144 100644
--- a/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts
+++ b/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts
@@ -22,6 +22,7 @@ import {
MerchantApiClient,
MerchantContractTerms,
PreparePayResultType,
+ TransactionMajorState,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { CoinConfig, defaultCoinConfig } from "../harness/denomStructures.js";
@@ -163,7 +164,22 @@ export async function runWalletWirefeesTest(t:
GlobalTestState) {
console.log(`amountEffective: ${preparePayResult.amountEffective}`);
+ t.assertAmountEquals(preparePayResult.amountEffective, "TESTKUDOS:6.4");
+
+ await walletClient.call(WalletApiOperation.ConfirmPay, {
+ transactionId: preparePayResult.transactionId,
+ });
+
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
+
+ const payTxn = await walletClient.call(
+ WalletApiOperation.GetTransactionById,
+ {
+ transactionId: preparePayResult.transactionId,
+ },
+ );
+
+ t.assertTrue(payTxn.txState.major === TransactionMajorState.Done);
}
runWalletWirefeesTest.suites = ["wallet"];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: harness: finish wire fees test,
gnunet <=