Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codeflash/result/critic.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def quantity_of_tests_critic(candidate_result: OptimizedCandidateResult) -> bool

if pass_count >= MIN_TESTCASE_PASSED_THRESHOLD:
return True
# If only one test passed, check if it's a REPLAY_TEST
return bool(pass_count == 1 and report[TestType.REPLAY_TEST]["passed"] == 1)
# If one or more tests passed, check if least one of them was a successful REPLAY_TEST
return bool(pass_count >= 1 and report[TestType.REPLAY_TEST]["passed"] >= 1)


def coverage_critic(original_code_coverage: CoverageData | None, test_framework: str) -> bool:
Expand Down
Loading