From 832d4410a5fea9615bf1c59cc541273481ed445f 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/report.py | 4 ++-- .../testplan/runners/fixtures/assertions_passing/suites.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/testplan/runners/fixtures/assertions_passing/report.py b/tests/functional/testplan/runners/fixtures/assertions_passing/report.py index 7d7c48c1f..7e0445de5 100644 --- a/tests/functional/testplan/runners/fixtures/assertions_passing/report.py +++ b/tests/functional/testplan/runners/fixtures/assertions_passing/report.py @@ -990,7 +990,7 @@ "type": "LogfileMatch", "description": None, "passed": True, - "timeout": 0.1, + "timeout": 1, "results": [ { "matched": "lime juice", @@ -1007,7 +1007,7 @@ "type": "LogfileMatch", "description": None, "passed": True, - "timeout": 0.1, + "timeout": 1, "results": [ { "matched": "ginger beer", 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: