From 13c32b0314fc082770f6c0822677976c29371450 Mon Sep 17 00:00:00 2001 From: MS Date: Fri, 25 Sep 2020 16:56:11 +0200 Subject: h_contract is also welcome in the order status url --- packages/taler-integrationtests/src/test-claim-loop.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packages') 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(); }); -- cgit v1.2.3