mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 18:25:34 +01:00
HeldLoad in the plug-in tests held a stored module's load for at most 1,000,000 yield_now calls and then let it go on its own. On a busy test host that limit passed before the test released it, so the held file loaded early: a_grant_given_elsewhere_since_the_load_removed_one_is_kept and a_stored_module_without_permissions_ends_its_grant_when_it_installs failed in a full engine run and passed alone. - The hook now waits on a condition variable that release() and the drop set. A load that runs on the test's own thread is not held and sets gave_up, so a load that is no longer in the background still fails the test instead of hanging it. - stored_plugins_load_without_holding_the_plugin_changes_lock waited at most 100,000 yields for the plug-in changes lock to be free; it now waits until it is free. - canceled_loads_forget_the_grants_of_what_they_installed releases the held load before canceling, since cancel waits for a running load up to its 10 second deadline. - a_query_runs_while_the_plugins_load checks which commands wait for the loads before it runs document.info.