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.unreg_event()
|
||||||
rpi.io.test1.reg_event(xxx_timeout)
|
rpi.io.test1.reg_event(xxx_timeout)
|
||||||
|
rpi.exit()
|
||||||
|
|
||||||
sleep(0.3)
|
# Exceed cycle time in mainloop
|
||||||
|
|
||||||
# Exceed cylcle time in main loop
|
|
||||||
with self.assertWarnsRegex(RuntimeWarning, r"io refresh time of 0 ms exceeded!"):
|
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
|
rpi._imgwriter._refresh = 0.0001
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
rpi.exit()
|
rpi.exit()
|
||||||
|
|
||||||
del rpi
|
del rpi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user