functional_tests: Check ejabberd contact list more robustly

Retry jsxc login if it gets disconnected.

Fixes #1393.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2018-10-03 18:59:51 -04:00
parent 6bf2b88874
commit aef837c9d6
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -281,7 +281,7 @@ def ejabberd_delete_contact(browser):
def ejabberd_has_contact(browser):
"""Check whether the contact is in Ejabberd user's roster."""
return site.jsxc_has_contact(browser)
return eventually(site.jsxc_has_contact, [browser])
def ikiwiki_create_wiki_if_needed(browser):