Skip to content

Commit dc9fdb8

Browse files
arnaudsjsinmantaci
authored andcommitted
Improve stability test_compileservice_recompile_backoff test case. (PR #9024)
Pull request opened by the merge tool on behalf of #9024
1 parent 6b8a4b0 commit dc9fdb8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
description: "Improve stability test_compileservice_recompile_backoff test case."
3+
change-type: patch
4+
destination-branches: [master, iso8]

tests/server/test_compilerservice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,7 @@ async def test_git_uses_environment_variables(environment_factory: EnvironmentFa
15821582
assert "trace: " in report.errstream
15831583

15841584

1585+
@pytest.mark.parametrize("no_agent", [True])
15851586
@pytest.mark.parametrize(
15861587
"recompile_backoff,expected_log_message,expected_log_level",
15871588
[

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def contains(self, loggerpart, level, msg, min_level: int = math.inf) -> "LogSeq
245245
if not self.allow_errors:
246246
# first error is later
247247
idxe = self._find("", logging.ERROR, "", self.index, min_level)
248-
assert idxe == -1 or idxe >= index
248+
assert idxe == -1 or idxe >= index, f"Unexpected ERROR log line found: {self.caplog.records[idxe]}"
249249
assert index >= 0, "could not find " + msg
250250
return LogSequence(self.caplog, index + 1, self.allow_errors, self.ignore)
251251

0 commit comments

Comments
 (0)