mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
effect::tests::failed_and_missing_stages_are_deferred_with_their_reason installed a plug-in that runs to the default instruction budget (about 51 million instructions for its input) inside a first view, whose budget is 2,000 ms of real time. Under heavy CPU load the run took longer than that, the view's budget cut it short, and the stage was deferred for time instead of as failed, so last_error was empty and the assertion at effect.rs:722 failed. With the test pinned to one core beside 15 busy loops it failed 3 runs of 3 that way. The test now gives the plug-in a budget of 100,000 instructions, so the run ends in an instruction-budget failure long before the view's budget runs out, and it checks that the error is the instruction budget. The same test passes 5 runs of 5 beside 15 busy loops and 5 of 5 beside 100.