Skip to content

Commit 29c9199

Browse files
Apply suggestion from @claude[bot]
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
1 parent 5819fbf commit 29c9199

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/languages/java/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def _find_junit_console_standalone() -> Path | None:
633633

634634
# Find the latest version available
635635
try:
636-
versions = sorted([d for d in m2_base.iterdir() if d.is_dir()], key=lambda d: d.name, reverse=True)
636+
versions = sorted([d for d in m2_base.iterdir() if d.is_dir()], key=lambda d: tuple(int(x) for x in d.name.split('.') if x.isdigit()), reverse=True)
637637
for version_dir in versions:
638638
jar = version_dir / f"junit-platform-console-standalone-{version_dir.name}.jar"
639639
if jar.exists():

0 commit comments

Comments
 (0)