aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/scripts/_utils54.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2026-02-26 11:02:55 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2026-02-26 11:02:55 +0100
commit4f97720e4c3944ccf9b9742028dc697c2dd94c5a (patch)
tree259ec6c30971f3ca0c7e0f38898ab7f7aa548af9 /unit_tests/scripts/_utils54.lua
parent6b8c83b3bc44b0a1bc186f58de0fea6dfc214c4b (diff)
downloadlanes-4f97720e4c3944ccf9b9742028dc697c2dd94c5a.tar.gz
lanes-4f97720e4c3944ccf9b9742028dc697c2dd94c5a.tar.bz2
lanes-4f97720e4c3944ccf9b9742028dc697c2dd94c5a.zip
change cancel_test() to raise cancel_error on hard-cancels by default
Diffstat (limited to 'unit_tests/scripts/_utils54.lua')
-rw-r--r--unit_tests/scripts/_utils54.lua2
1 files changed, 1 insertions, 1 deletions
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_)
20 local n = 1 20 local n = 1
21 while true do 21 while true do
22 coroutine.yield("I yield!", n) 22 coroutine.yield("I yield!", n)
23 if cancel_test and cancel_test() then -- cancel_test does not exist when run immediately (not in a Lane) 23 if cancel_test and cancel_test(true) then -- cancel_test does not exist when run immediately (not in a Lane)
24 return "I am cancelled" 24 return "I am cancelled"
25 end 25 end
26 n = n + 1 26 n = n + 1