Skip to content

Commit 2f07296

Browse files
committed
Refactor evaluation_test.py to ensure singleton watcher is initialized
- Moved the call to `ensure_singleton_watcher()` into the `evaluation_test` function to ensure the evaluation watcher is running before processing begins. This change enhances the reliability of the evaluation process by ensuring the watcher is active during execution.
1 parent 598c12a commit 2f07296

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eval_protocol/pytest/evaluation_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030

3131
from ..common_utils import load_jsonl
3232

33-
# Ensure the evaluation watcher is running (OS-level singleton)
34-
ensure_singleton_watcher()
35-
3633

3734
def evaluation_test(
3835
*,
@@ -200,6 +197,9 @@ def wrapper_body(**kwargs):
200197
eval_metadata = None
201198
all_results: List[EvaluationRow] = []
202199

200+
# Ensure the evaluation watcher is running (OS-level singleton)
201+
ensure_singleton_watcher()
202+
203203
try:
204204
# Handle dataset loading
205205
data: List[EvaluationRow] = []

0 commit comments

Comments
 (0)