aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-08 18:51:38 +0100
committerFlorian Dold <florian@dold.me>2024-01-08 18:51:45 +0100
commit2987f6f8365a15c6761a370bfd0ebf0952ce3f66 (patch)
treecbaf22fb5a44efced31de485c3658edbbbc98731 /packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts
parentb0610d24571593909cd6683b340fa266de046e31 (diff)
downloadwallet-core-2987f6f8365a15c6761a370bfd0ebf0952ce3f66.tar.xz
wallet-core: fix error reporting for exchange entries
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts9
1 files changed, 8 insertions, 1 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 583dba28d..bf0c7a78f 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
@@ -31,7 +31,6 @@ import {
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
import {
- applyTimeTravelV2,
createSimpleTestkudosEnvironmentV2,
createWalletDaemonWithClient,
withdrawViaBankV2,
@@ -194,11 +193,19 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) {
Duration.fromSpec({ days: 5 }),
);
+ console.log("stopping exchange to apply time-travel");
+
await exchange.stop();
exchange.setTimetravel(timetravelOffsetMs);
await exchange.start();
await exchange.pingUntilAvailable();
+ console.log("running expire");
+ await exchange.runExpireOnce();
+ console.log("done running expire");
+
+ console.log("purse should now be expired");
+
await w1.walletClient.call(WalletApiOperation.TestingSetTimetravel, {
offsetMs: timetravelOffsetMs,
});