Skip to content

Commit

Permalink
fix flaky test where logmatcher timeout before read to EOF (#1170)
Browse files Browse the repository at this point in the history
Co-authored-by: Pyifan <[email protected]>
  • Loading branch information
Pyifan and Pyifan authored Jan 8, 2025
1 parent 7562ae2 commit 6b3d418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@
"type": "LogfileMatch",
"description": None,
"passed": True,
"timeout": 0.1,
"timeout": 1,
"results": [
{
"matched": "lime juice",
Expand All @@ -1007,7 +1007,7 @@
"type": "LogfileMatch",
"description": None,
"passed": True,
"timeout": 0.1,
"timeout": 1,
"results": [
{
"matched": "ginger beer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6b3d418

Please sign in to comment.