Skip to content

Commit

Permalink
test: fix JDK version test
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek authored and tgodzik committed Apr 3, 2024
1 parent d2b7d66 commit 0abd3b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/src/test/scala/tests/JdkVersionSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ class JdkVersionSuite extends FunSuite {
implicit val ctx: ExecutionContext = this.munitExecutionContext
test("jdk-shell-version") {
assertEquals(
JdkVersion.fromShell(javaHome),
JdkVersion.fromShell(javaHome).map(_.major),
JdkVersion
.fromReleaseFile(javaHome)
.orElse(JdkVersion.parse(System.getProperty("java.version"))),
.orElse(JdkVersion.parse(System.getProperty("java.version")))
.map(_.major),
)
}
}

0 comments on commit 0abd3b9

Please sign in to comment.