Skip to content

Commit dc1d747

Browse files
author
BirdeeHub
committed
refactor(tests): control -> ok
1 parent 7893772 commit dc1d747

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/gambiarra.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ return setmetatable({
126126
.currentline
127127
end
128128
if type(cond) == 'function' then
129-
local control, value = pcall(cond)
130-
if should_fail and not control or not should_fail and control then
129+
local ok, value = pcall(cond)
130+
if should_fail and not ok or not should_fail and ok then
131131
handler(self, 'pass', name, msg)
132132
else
133133
handler(self, 'fail', name, msg, not should_fail and tostring(value) or "Task failed successfully. No error, that is the problem.")

0 commit comments

Comments
 (0)