diff options
author | MS <ms@taler.net> | 2020-09-25 16:56:11 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2020-09-25 16:56:11 +0200 |
commit | 13c32b0314fc082770f6c0822677976c29371450 (patch) | |
tree | e222100624bd8d62577369cab8d9030da0a3e426 /packages/taler-integrationtests | |
parent | 2c0464b49479d62b58968a5e28c890555456807b (diff) | |
download | wallet-core-13c32b0314fc082770f6c0822677976c29371450.tar.xz |
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.ts | 7 |
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(); }); |