diff options
Diffstat (limited to 'unit_tests/scripts/_utils.lua')
| -rw-r--r-- | unit_tests/scripts/_utils.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit_tests/scripts/_utils.lua b/unit_tests/scripts/_utils.lua index 9f46237..365fd10 100644 --- a/unit_tests/scripts/_utils.lua +++ b/unit_tests/scripts/_utils.lua | |||
| @@ -76,7 +76,7 @@ local yield_one_by_one = function(...) | |||
| 76 | local _val = select(_i, ...) | 76 | local _val = select(_i, ...) |
| 77 | PRINT("yielding #", _i, _val) | 77 | PRINT("yielding #", _i, _val) |
| 78 | local _ack = coroutine.yield(_val) | 78 | local _ack = coroutine.yield(_val) |
| 79 | if cancel_test and cancel_test() then -- cancel_test does not exist when run immediately (not in a Lane) | 79 | if cancel_test and cancel_test(true) then -- cancel_test does not exist when run immediately (not in a Lane) |
| 80 | return "cancelled!" | 80 | return "cancelled!" |
| 81 | end | 81 | end |
| 82 | -- of course, if we are cancelled, we were not resumed, and yield() didn't return what we expect | 82 | -- of course, if we are cancelled, we were not resumed, and yield() didn't return what we expect |
