diff --git a/scripts/data/integration_tests/test_lua_api/builtin.omwscripts b/scripts/data/integration_tests/test_lua_api/builtin.omwscripts deleted file mode 100644 index 8b7db327c5..0000000000 --- a/scripts/data/integration_tests/test_lua_api/builtin.omwscripts +++ /dev/null @@ -1 +0,0 @@ -# It is an empty file that overrides builtin.omwscripts and disables builtin scripts diff --git a/scripts/data/integration_tests/test_lua_api/player.lua b/scripts/data/integration_tests/test_lua_api/player.lua index 45a3d1bf2e..95e35e7dd9 100644 --- a/scripts/data/integration_tests/test_lua_api/player.lua +++ b/scripts/data/integration_tests/test_lua_api/player.lua @@ -220,7 +220,7 @@ testing.registerLocalTest('findNearestNavMeshPosition', return { engineHandlers = { - onUpdate = testing.updateLocal, + onFrame = testing.updateLocal, }, eventHandlers = testing.eventHandlers } diff --git a/scripts/data/integration_tests/testing_util/testing_util.lua b/scripts/data/integration_tests/testing_util/testing_util.lua index 4889b40898..4aefc5afe5 100644 --- a/scripts/data/integration_tests/testing_util/testing_util.lua +++ b/scripts/data/integration_tests/testing_util/testing_util.lua @@ -181,7 +181,9 @@ end function M.updateLocal() if localTestRunner and coroutine.status(localTestRunner) ~= 'dead' then - coroutine.resume(localTestRunner) + if not core.isWorldPaused() then + coroutine.resume(localTestRunner) + end else localTestRunner = nil end