diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-06-15 16:53:58 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-06-15 16:53:58 +0200 |
commit | 1dddbe697e757431cc676d001e5035aa7b67540c (patch) | |
tree | 0d69704667ddbee559764954be4204daef956c38 | |
parent | 2782b750aee9194627eb3db3776005a136c51568 (diff) | |
download | qutebrowser-1dddbe697e757431cc676d001e5035aa7b67540c.tar.gz qutebrowser-1dddbe697e757431cc676d001e5035aa7b67540c.zip |
tests: Speculatively stabilize history tests
If we're not waiting for the async INSERT in the SQL database, it can happen
that :debug-dump-history gets called before the history entry was addeded to the
actual database.
See #5390
-rw-r--r-- | tests/end2end/features/test_history_bdd.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/end2end/features/test_history_bdd.py b/tests/end2end/features/test_history_bdd.py index 3a44c2c11..29958c3e6 100644 --- a/tests/end2end/features/test_history_bdd.py +++ b/tests/end2end/features/test_history_bdd.py @@ -50,6 +50,7 @@ def check_query(quteproc, name, value): @bdd.then(bdd.parsers.parse("the history should contain:\n{expected}")) def check_history(quteproc, server, tmpdir, expected): + quteproc.wait_for(message='INSERT INTO History *', category='sql') path = tmpdir / 'history' quteproc.send_cmd(':debug-dump-history "{}"'.format(path)) quteproc.wait_for(category='message', loglevel=logging.INFO, |