mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
test: Update runtime warning for exceeded cycle time in mainloop
This commit is contained in:
@@ -141,14 +141,15 @@ class TestMainloop(TestRevPiModIO):
|
||||
|
||||
rpi.io.test1.unreg_event()
|
||||
rpi.io.test1.reg_event(xxx_timeout)
|
||||
rpi.exit()
|
||||
|
||||
sleep(0.3)
|
||||
|
||||
# Exceed cylcle time in main loop
|
||||
# Exceed cycle time in mainloop
|
||||
with self.assertWarnsRegex(RuntimeWarning, r"io refresh time of 0 ms exceeded!"):
|
||||
rpi = self.modio(debug=False, autorefresh=True)
|
||||
rpi.mainloop(blocking=False)
|
||||
rpi._imgwriter._refresh = 0.0001
|
||||
sleep(0.1)
|
||||
rpi.exit()
|
||||
rpi.exit()
|
||||
|
||||
del rpi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user