tests: Test `naughty.get_by_id` with invalid ids.

This commit is contained in:
Emmanuel Lepage Vallee 2021-10-05 13:06:26 -07:00
parent d4a41184c4
commit 375738d609
1 changed files with 1 additions and 0 deletions

View File

@ -1074,6 +1074,7 @@ table.insert(steps, function()
assert(naughty.get_by_id(id) == n)
assert(naughty.getById(42) ~= n)
assert(naughty.get_by_id(42) ~= n)
assert(naughty.get_by_id(9999) == nil)
-- The timeout
local real, called = n.reset_timeout, false