summaryrefslogtreecommitdiff
path: root/packages/taler-integrationtests
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-09-25 16:56:11 +0200
committerMS <ms@taler.net>2020-09-25 16:56:11 +0200
commit13c32b0314fc082770f6c0822677976c29371450 (patch)
treee222100624bd8d62577369cab8d9030da0a3e426 /packages/taler-integrationtests
parent2c0464b49479d62b58968a5e28c890555456807b (diff)
downloadwallet-core-13c32b0314fc082770f6c0822677976c29371450.tar.gz
wallet-core-13c32b0314fc082770f6c0822677976c29371450.tar.bz2
wallet-core-13c32b0314fc082770f6c0822677976c29371450.zip
h_contract is also welcome in the order status url
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();
});