mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
Three tests in crates/plugins/tests/abi.rs passed or failed on how long a run took (under 5 s or 3 s), so a slow or loaded runner could fail them and a fast one could hide a run stopped by the wrong limit. - hostile_modules_fail_within_their_budget (was _fail_quickly) checks each module's error. The endless ones must end with the instruction budget, so a run stopped by the 60 s time budget fails the test. - wall_clock_budget_stops_runaway_plugins gives an endless loop two slices of instructions: with a time budget of 0 it ends with the time budget at the end of the first slice, and with the default one it ends with the instruction budget. - cancelling_stops_a_run_between_two_slices_of_its_budget gives the loop two slices: cancelled, it comes back Cancelled; not cancelled, the same plug-in ends with the instruction budget. Each test fails when its check in Plugin::call_with is removed.