diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-06-25 13:41:38 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-06-25 13:41:38 +0200 |
commit | cb383c6f9fc386b644e9c86682bc87fbc61f2e89 (patch) | |
tree | aaba8a2abd49ac34a58e570a950e0d8c06e1fc13 | |
parent | 76e8debbc08288c5321be34a5f747e58ab997abe (diff) | |
download | qutebrowser-cb383c6f9fc386b644e9c86682bc87fbc61f2e89.tar.gz qutebrowser-cb383c6f9fc386b644e9c86682bc87fbc61f2e89.zip |
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
-rw-r--r-- | tests/end2end/test_invocations.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |