From 375738d609779d93e5f4ce7875748fc1abc9bf13 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 5 Oct 2021 13:06:26 -0700 Subject: [PATCH] tests: Test `naughty.get_by_id` with invalid ids. --- tests/test-naughty-legacy.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-naughty-legacy.lua b/tests/test-naughty-legacy.lua index ee81ea10b..12bae7df3 100644 --- a/tests/test-naughty-legacy.lua +++ b/tests/test-naughty-legacy.lua @@ -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