From d96a0a0a38ec313d6f120791dbe6751536149f22 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 11 Aug 2022 17:25:40 -0700 Subject: [PATCH] sharing: tests: functional: Fix a flaky test by waiting Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/sharing/tests/test_functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/sharing/tests/test_functional.py b/plinth/modules/sharing/tests/test_functional.py index 5e335d29a..50e8b7d5c 100644 --- a/plinth/modules/sharing/tests/test_functional.py +++ b/plinth/modules/sharing/tests/test_functional.py @@ -146,7 +146,7 @@ def _verify_invalid_share(browser, name): def _verify_nonexistant_share(browser, name): """Verify that given URL for a given share name is a 404.""" functional.visit(browser, f'/share/{name}') - assert '404' in browser.title + functional.eventually(lambda: '404' in browser.title) def _verify_inaccessible_share(browser, name):