aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src')
-rw-r--r--packages/taler-harness/src/integrationtests/test-denom-unoffered.ts4
-rw-r--r--packages/taler-harness/src/integrationtests/test-revocation.ts6
-rw-r--r--packages/taler-harness/src/integrationtests/test-wallet-balance.ts4
3 files changed, 8 insertions, 6 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts b/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
index 259cc33f9..1a62a6065 100644
--- a/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
+++ b/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
@@ -127,9 +127,9 @@ export async function runDenomUnofferedTest(t: GlobalTestState) {
// TalerErrorCode.MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_NOT_FOUND,
// );
- await walletClient.call(WalletApiOperation.AddExchange, {
+ // Force updating the exchange entry so that the wallet knows about the new denominations.
+ await walletClient.call(WalletApiOperation.UpdateExchangeEntry, {
exchangeBaseUrl: exchange.baseUrl,
- forceUpdate: true,
});
await walletClient.call(WalletApiOperation.DeleteTransaction, {
diff --git a/packages/taler-harness/src/integrationtests/test-revocation.ts b/packages/taler-harness/src/integrationtests/test-revocation.ts
index 9ed2d6206..6b47951bc 100644
--- a/packages/taler-harness/src/integrationtests/test-revocation.ts
+++ b/packages/taler-harness/src/integrationtests/test-revocation.ts
@@ -180,9 +180,8 @@ export async function runRevocationTest(t: GlobalTestState) {
// FIXME: this shouldn't be necessary once https://bugs.taler.net/n/6565
// is implemented.
- await walletClient.call(WalletApiOperation.AddExchange, {
+ await walletClient.call(WalletApiOperation.UpdateExchangeEntry, {
exchangeBaseUrl: exchange.baseUrl,
- forceUpdate: true,
});
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
const bal = await walletClient.call(WalletApiOperation.GetBalances, {});
@@ -218,9 +217,8 @@ export async function runRevocationTest(t: GlobalTestState) {
// FIXME: this shouldn't be necessary once https://bugs.taler.net/n/6565
// is implemented.
- await walletClient.call(WalletApiOperation.AddExchange, {
+ await walletClient.call(WalletApiOperation.UpdateExchangeEntry, {
exchangeBaseUrl: exchange.baseUrl,
- forceUpdate: true,
});
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
{
diff --git a/packages/taler-harness/src/integrationtests/test-wallet-balance.ts b/packages/taler-harness/src/integrationtests/test-wallet-balance.ts
index 0e57ce477..c4ca94dc0 100644
--- a/packages/taler-harness/src/integrationtests/test-wallet-balance.ts
+++ b/packages/taler-harness/src/integrationtests/test-wallet-balance.ts
@@ -75,6 +75,8 @@ export async function runWalletBalanceTest(t: GlobalTestState) {
fulfillment_url: "taler://fulfillment-success/thx",
};
+ console.log("creating order");
+
const orderResp = await merchantClient.createOrder({
order,
});
@@ -117,6 +119,8 @@ export async function runWalletBalanceTest(t: GlobalTestState) {
Amounts.isZero(preparePayResult.balanceDetails.balanceMerchantDepositable),
);
+ console.log("waiting for transactions to finalize");
+
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
}