From 4f97720e4c3944ccf9b9742028dc697c2dd94c5a Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 26 Feb 2026 11:02:55 +0100 Subject: change cancel_test() to raise cancel_error on hard-cancels by default --- unit_tests/scripts/_utils54.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unit_tests/scripts/_utils54.lua') diff --git a/unit_tests/scripts/_utils54.lua b/unit_tests/scripts/_utils54.lua index a511563..629f5c5 100644 --- a/unit_tests/scripts/_utils54.lua +++ b/unit_tests/scripts/_utils54.lua @@ -20,7 +20,7 @@ utils.yielder_with_to_be_closed = function(out_linda_, wait_) local n = 1 while true do coroutine.yield("I yield!", n) - if cancel_test and cancel_test() then -- cancel_test does not exist when run immediately (not in a Lane) + if cancel_test and cancel_test(true) then -- cancel_test does not exist when run immediately (not in a Lane) return "I am cancelled" end n = n + 1 -- cgit v1.2.3-55-g6feb