Skip to content

Commit

Permalink
fix test-misc.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Feb 8, 2024
1 parent adb2fee commit a2f27a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test-misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,13 @@ return require('lib/tap')(function (test)
test("uv constants", function(print, p, expect, uv)
assert(type(uv.constants)=='table')
for k, v in pairs(uv.constants) do
assert(v >= 0, k)
if k=='THREAD_PRIORITY_LOWEST' then
assert(v == -2)
elseif k=='THREAD_PRIORITY_BELOW_NORMAL' then
assert(v == -1)
else
assert(v >= 0, k)
end
end
end)

Expand Down

0 comments on commit a2f27a9

Please sign in to comment.