Skip to content

Commit 3e1d561

Browse files
committed
Fixed coroutine test openresty#10 on PR openresty#952
1 parent 23189a0 commit 3e1d561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/091-coroutine.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ done
475475
local g = function() unknown.unknown = 1 end
476476
local l1 = coroutine.create(f)
477477
local l2 = coroutine.create(g)
478-
local ok = coroutine.resume(l1, l2)
479-
ngx.say(ok and "hello" or "error")
478+
local o, k, e = coroutine.resume(l1, l2)
479+
ngx.say(o and not k and "hello" or e)
480480
';
481481
}
482482
--- request

0 commit comments

Comments
 (0)