Skip to content

Commit

Permalink
code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-akolodziejczyk committed Dec 9, 2024
1 parent 3b0acad commit 31f6ec2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ci/container/test_authentication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ eval $(jq -r '.authtestparams | to_entries | map("export \(.key)=\(.value|tostri
$MVNW_EXE -DjenkinsIT \
-Djava.io.tmpdir=$WORKSPACE \
-Djacoco.skip.instrument=true \
-Dskip.ut=true \
-Dskip.unitTests=true \
-DintegrationTestSuites=AuthenticationTestSuite \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-Dnot-self-contained-jar \
Expand Down
2 changes: 1 addition & 1 deletion parent-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<relocationBase>net/snowflake/client/jdbc/internal</relocationBase>
<shadeBase>net.snowflake.client.jdbc.internal</shadeBase>
<shadeNativeBase>net_snowflake_client_jdbc_internal</shadeNativeBase>
<skip.ut>false</skip.ut>
<skip.unitTests>false</skip.unitTests>
<slf4j.version>2.0.13</slf4j.version>
<snowflake.common.version>5.1.4</snowflake.common.version>
<integrationTestSuites>UnitTestSuite</integrationTestSuites>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skip.ut}</skipTests>
<skipTests>${skip.unitTests}</skipTests>
<argLine>--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED</argLine>
</configuration>
</plugin>
Expand Down Expand Up @@ -1215,7 +1215,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<test>UnitTestSuite</test>
<skipTests>${skip.ut}</skipTests>
<skipTests>${skip.unitTests}</skipTests>
</configuration>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
import java.util.concurrent.TimeUnit;

import net.snowflake.client.core.SessionUtil;
import net.snowflake.client.jdbc.SnowflakeConnectionV1;
import net.snowflake.client.jdbc.SnowflakeSQLException;
Expand Down Expand Up @@ -62,7 +64,7 @@ public void provideCredentials(String scenario, String login, String password) {
ProcessBuilder processBuilder =
new ProcessBuilder("node", provideBrowserCredentialsPath, scenario, login, password);
Process process = processBuilder.start();
process.waitFor();
process.waitFor(15, TimeUnit.SECONDS);
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand All @@ -74,7 +76,7 @@ public void cleanBrowserProcesses() {
ProcessBuilder processBuilder = new ProcessBuilder("node", cleanBrowserProcessesPath);
try {
Process process = processBuilder.start();
process.waitFor();
process.waitFor(15, TimeUnit.SECONDS);
} catch (InterruptedException | IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 31f6ec2

Please sign in to comment.