uitests: More handling for slow startup on f39

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-03-03 13:01:57 -05:00
parent 75e4d1dd29
commit 2043847ade

View File

@ -92,10 +92,11 @@ def testShowRemoteDBusConnect(app):
newapp = lib.app.VMMDogtailApp("test:///default")
newapp.open(check_already_running=False,
extra_opts=opts)
lib.utils.check(lambda: not newapp.is_running())
timeout = 10
lib.utils.check(lambda: not newapp.is_running(), timeout)
vapps = [a for a in newapp.tree.root.applications() if
a.name == "virt-manager"]
lib.utils.check(lambda: len(vapps) == 1)
lib.utils.check(lambda: len(vapps) == 1, timeout=timeout)
# Ensure connection showed up
app.topwin.find("test default", "table cell")