Skip to content

Commit c00a2bb

Browse files
chernistryclaude
andcommitted
fix: use tmp_path in adaptive timeout test to avoid real archive data
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1c4b60d commit c00a2bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_adaptive_timeout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ def test_historical_does_not_override_when_smaller(self) -> None:
199199
assert est.timeout_s == 5400.0
200200
assert est.confidence == 0.8
201201

202-
def test_no_historical_gives_lower_confidence(self) -> None:
202+
def test_no_historical_gives_lower_confidence(self, tmp_path: Path) -> None:
203203
task = _make_task()
204-
est = estimate_timeout(task, model="sonnet", historical_data=None)
204+
est = estimate_timeout(task, model="sonnet", historical_data=None, archive_path=tmp_path / "nonexistent.jsonl")
205205
assert est.confidence == 0.5
206206

207207

0 commit comments

Comments
 (0)