h_contract is also welcome in the order status url

This commit is contained in:
MS 2020-09-25 16:56:11 +02:00
parent 2c0464b494
commit 13c32b0314
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -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();
});