Skip to content

Commit

Permalink
fix(tests): don't fail if you have additional JREs (#986)
Browse files Browse the repository at this point in the history
Fixes #985
  • Loading branch information
lengau authored and mr-cal committed Feb 7, 2025
1 parent 5e2a334 commit 68b757f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/plugins/test_java_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def _check_java(self, javac: str):
assert plugin.get_build_environment() == {}


def test_java_plugin_jre_21(part_info, mocker):
def test_java_plugin_jre_not_17(part_info, mocker):

orig_check_java = JavaPlugin._check_java

def _check_java(self, javac: str):
if "21" in javac:
if "17" not in javac:
return None, ""
return orig_check_java(self, javac)

Expand Down

0 comments on commit 68b757f

Please sign in to comment.