diff --git a/tools/test-tools.sh b/tools/test-tools.sh index 1f7f398..1fd9556 100644 --- a/tools/test-tools.sh +++ b/tools/test-tools.sh @@ -956,10 +956,10 @@ r, calls, ms = run(hook(five)) check("R8 five rulings make three queries, the first three titles, and the reason counts two unchecked", len(calls) == 3 and sorted(c["semantic"]["text"] for c in calls) == ["Title 0", "Title 1", "Title 2"] and reason(r).split("\n")[-1] == "2 rulings or questions over RECALL_ADMIT_MAX were not checked.", (calls, reason(r)[-120:])) -r, calls, ms = run(hook(five), RECALL_ADMIT_MAX="1", RECALL_BUDGET="560") +r, calls, ms = run(hook(five), RECALL_ADMIT_MAX="1", RECALL_BUDGET="600") check("R8 RECALL_ADMIT_MAX=1 checks one, counts four, and the whole reason, trimmed to fit, stays within RECALL_BUDGET", - len(calls) == 1 and reason(r).endswith("4 rulings or questions over RECALL_ADMIT_MAX were not checked.") and len(reason(r)) <= 560 - and len(reason(r).split("\n")) == 3, len(reason(r))) + len(calls) == 1 and reason(r).endswith("4 rulings or questions over RECALL_ADMIT_MAX were not checked.") and len(reason(r)) <= 600 + and len(reason(r).split("\n")) == 4, len(reason(r))) r, calls, ms = run(hook(five), items=[item("r3", "An unchecked batch member")] + NB) check("R8 a ruling in the batch that was not checked is still never listed as a neighbour", held(r) and "t:ruling:r3" not in reason(r), reason(r)[:300]) r, calls, ms = run(hook(five[:3]))