From 512f4c0b46ea5cc359e673b7379cd81925863121 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 14 Mar 2025 14:53:09 +0100 Subject: Give a name to all lanes in the tests --- tests/func_is_string.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/func_is_string.lua') diff --git a/tests/func_is_string.lua b/tests/func_is_string.lua index a14c460..5de4c60 100644 --- a/tests/func_is_string.lua +++ b/tests/func_is_string.lua @@ -7,7 +7,7 @@ if _VERSION >= "Lua 5.4" then local lanes = require 'lanes' local r do - local h = lanes.gen('*', lanes.sleep)(0.5) + local h = lanes.gen('*', { name = 'auto' }, lanes.sleep)(0.5) r = h end -- h is closed here return r.status @@ -21,8 +21,8 @@ end local options = {globals = { b = 666 }} -local gen1 = lanes.gen("*", "return true, dofile('fibonacci.lua')") -local gen2 = lanes.gen(options, "return b") +local gen1 = lanes.gen("*", { name = 'auto' }, "return true, dofile('fibonacci.lua')") +local gen2 = lanes.gen(options, { name = 'auto' }, "return b") fibLane = gen1() lanes.sleep(0.1) -- cgit v1.2.3-55-g6feb