mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 02:28:18 +02:00
tests: don't exit test-networkmanager-service.py after 20 seconds
Tests might just take longer than 20 seconds. Also, we already watch stdin to determine whether the service should exit.
This commit is contained in:
parent
56a0488bba
commit
4e18ef49bf
1 changed files with 0 additions and 5 deletions
|
|
@ -2252,14 +2252,9 @@ def main():
|
||||||
id1 = GLib.IOChannel(0).add_watch(GLib.IOCondition.HUP,
|
id1 = GLib.IOChannel(0).add_watch(GLib.IOCondition.HUP,
|
||||||
lambda io, condition: gl.mainloop.quit() or True)
|
lambda io, condition: gl.mainloop.quit() or True)
|
||||||
|
|
||||||
# also quit after inactivity to ensure we don't stick around if the above fails somehow
|
|
||||||
id2 = GLib.timeout_add_seconds(20,
|
|
||||||
lambda: gl.mainloop.quit() or True)
|
|
||||||
|
|
||||||
gl.mainloop.run()
|
gl.mainloop.run()
|
||||||
|
|
||||||
GLib.source_remove(id1)
|
GLib.source_remove(id1)
|
||||||
GLib.source_remove(id2)
|
|
||||||
|
|
||||||
gl.agent_manager.remove_from_connection()
|
gl.agent_manager.remove_from_connection()
|
||||||
gl.dns_manager.unexport()
|
gl.dns_manager.unexport()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue