From cb383c6f9fc386b644e9c86682bc87fbc61f2e89 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 25 Jun 2020 13:41:38 +0200 Subject: tests: Stabilize test_open_with_ascii_locale The loaded page caused a 404, but we didn't wait for the new error logging message. Most of the time that went well because we quit before it could be logged, but not always. See https://github.com/qutebrowser/qutebrowser/issues/5390#issuecomment-629268747 --- tests/end2end/test_invocations.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py index a4ac654f4..375ced814 100644 --- a/tests/end2end/test_invocations.py +++ b/tests/end2end/test_invocations.py @@ -143,6 +143,10 @@ def test_open_with_ascii_locale(request, server, tmpdir, quteproc_new, url): quteproc_new.wait_for(message="load status for <* tab_id=* " "url='*/f%C3%B6%C3%B6.html'>: LoadStatus.error") + if request.config.webengine: + line = quteproc_new.wait_for(message='Load error: ERR_FILE_NOT_FOUND') + line.expected = True + @pytest.mark.linux @ascii_locale -- cgit v1.2.3-54-g00ecf