From 20c31b8eda2c181087368fc3ae6e38f2d1b221e4 Mon Sep 17 00:00:00 2001 From: Pyifan Date: Wed, 8 Jan 2025 16:50:32 +0800 Subject: [PATCH] fix flaky test where logmatcher timeout before read to EOF --- .../testplan/runners/fixtures/assertions_passing/suites.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/testplan/runners/fixtures/assertions_passing/suites.py b/tests/functional/testplan/runners/fixtures/assertions_passing/suites.py index 5504ab69d..77e641ec5 100644 --- a/tests/functional/testplan/runners/fixtures/assertions_passing/suites.py +++ b/tests/functional/testplan/runners/fixtures/assertions_passing/suites.py @@ -532,9 +532,9 @@ def test_logfile(self, env, result): f.write("vodka\n") f.write("lime juice\n") f.flush() - result.logfile.match(lm, r"lime juice", timeout=0.1) + result.logfile.match(lm, r"lime juice", timeout=1) result.logfile.seek_eof(lm) - with result.logfile.expect(lm, r"ginger beer", timeout=0.1): + with result.logfile.expect(lm, r"ginger beer", timeout=1): f.write("ginger beer\n") f.flush() finally: