summaryrefslogtreecommitdiff
path: root/packages/taler-integrationtests
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-integrationtests')
-rw-r--r--packages/taler-integrationtests/src/test-claim-loop.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-integrationtests/src/test-claim-loop.ts b/packages/taler-integrationtests/src/test-claim-loop.ts
index fdc87ba0d..22a04b7df 100644
--- a/packages/taler-integrationtests/src/test-claim-loop.ts
+++ b/packages/taler-integrationtests/src/test-claim-loop.ts
@@ -72,8 +72,13 @@ runTest(async (t: GlobalTestState) => {
let tokenBefore = statusUrlBefore.searchParams.get("token")
let tokenAfter = statusUrlAfter.searchParams.get("token")
+ let hashContractAfter = statusUrlAfter.searchParams.get("h_contract")
- t.assertTrue(tokenBefore === tokenAfter)
+ // after claiming the contract, we either want its hash in the
+ // status url, or at least see again its token in the status url.
+ t.assertTrue(
+ (hashContractAfter !== null) || (tokenBefore === tokenAfter)
+ )
await t.shutdown();
});