From 7f636db42f731a9f244fb4690a0681cb3502e78d Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" <mateusz.gajewski@gmail.com> Date: Tue, 26 Mar 2024 12:02:11 +0100 Subject: [PATCH] Fix error-prone violation in trino-server-rpm --- .../src/test/java/io/trino/server/rpm/ServerIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java b/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java index 48a16849a413..b060fa58785a 100644 --- a/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java +++ b/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java @@ -75,10 +75,10 @@ public void testInstallUninstall() { // Release names as in the https://api.adoptium.net/q/swagger-ui/#/Release%20Info/getReleaseNames testInstall("jdk-21.0.2+13", "/usr/lib/jvm/temurin-21", "21"); - testUninstall("jdk-21.0.2+13", "/usr/lib/jvm/temurin-21", "21"); + testUninstall("jdk-21.0.2+13", "/usr/lib/jvm/temurin-21"); testInstall("jdk-22+36", "/usr/lib/jvm/temurin-22", "22"); - testUninstall("jdk-22+36", "/usr/lib/jvm/temurin-22", "22"); + testUninstall("jdk-22+36", "/usr/lib/jvm/temurin-22"); } private void testInstall(String temurinReleaseName, String javaHome, String expectedJavaVersion) @@ -121,7 +121,7 @@ private void testInstall(String temurinReleaseName, String javaHome, String expe } - private void testUninstall(String temurinReleaseName, String javaHome, String expectedJavaVersion) + private void testUninstall(String temurinReleaseName, String javaHome) throws Exception { String rpm = "/" + new File(rpmHostPath).getName();