UIManager: get rid of self._running and self._run_forever (#9669)

This commit is contained in:
zwim
2022-10-27 22:08:38 +02:00
committed by GitHub
parent 88add4ed6f
commit 31b16ba3e1
8 changed files with 59 additions and 30 deletions

View File

@@ -9,7 +9,7 @@ describe("BackgroundTaskPlugin", function()
MockTime:install()
local Device = require("device")
Device.input.waitEvent = function() end
UIManager._run_forever = true
UIManager:setRunForeverMode()
requireBackgroundRunner()
-- Monkey patch this method to notify BackgroundRunner
-- as it is not accessible to UIManager in these tests