diff --git a/src/plugins/luatests/luatests/tst_utils.lua b/src/plugins/luatests/luatests/tst_utils.lua index c6bbfcf084c..940f6ff7e97 100644 --- a/src/plugins/luatests/luatests/tst_utils.lua +++ b/src/plugins/luatests/luatests/tst_utils.lua @@ -20,7 +20,15 @@ local function testSearchInPath() print("Hostname found at:", result) end +local function testWaitMs() + local u = require("Utils") + print("Starting to wait ...") + a.wait(u.waitms(1000)) + print("About a second should have elapsed now.") +end + return { testDirEntries = testDirEntries, testSearchInPath = testSearchInPath, + testWaitMs = testWaitMs, }