aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-28 12:27:26 +0100
committerFlorian Dold <florian@dold.me>2024-03-28 12:27:32 +0100
commit4b9cbe58025bf7082d0c79ee596200628b5d8c47 (patch)
treeb60ed8a74b3066edc44570d4ba22745740d4c4fd /packages/taler-harness
parent53faa440d146b4658fdad48ef545092325dda475 (diff)
downloadwallet-core-4b9cbe58025bf7082d0c79ee596200628b5d8c47.tar.xz
wallet-core: count peer-push-debit towards pending outgoing balance
Also check balance in the integration test.
Diffstat (limited to 'packages/taler-harness')
-rw-r--r--packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts14
1 files changed, 14 insertions, 0 deletions
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 5a1959cc6..21e0d384a 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
@@ -76,6 +76,15 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) {
),
);
+ const checkResp0 = await w1.walletClient.call(
+ WalletApiOperation.CheckPeerPushDebit,
+ {
+ amount: "TESTKUDOS:5" as AmountString,
+ },
+ );
+
+ t.assertAmountEquals(checkResp0.amountEffective, "TESTKUDOS:5.49");
+
{
const resp = await w1.walletClient.call(
WalletApiOperation.InitiatePeerPushDebit,
@@ -91,6 +100,11 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) {
console.log(resp);
}
+ {
+ const bal = await w1.walletClient.call(WalletApiOperation.GetBalances, {});
+ t.assertAmountEquals(bal.balances[0].pendingOutgoing, "TESTKUDOS:5.49");
+ }
+
await w1.walletClient.call(WalletApiOperation.TestingWaitRefreshesFinal, {});
const resp = await w1.walletClient.call(