Skip to content

Commit

Permalink
fix some problem
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangshenghang committed Nov 4, 2024
1 parent 202a3d9 commit 39c8eb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
env {
parallelism = 1
job.mode = "BATCH"
jars = "file:///tmp/jars/mysql-connector-java-8.0.16.jar"
}

source {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
env {
parallelism = 1
job.mode = "BATCH"
jars = "file:///tmp/jars/mysql-connector-java-8.0.16.jar"
}

source {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ void testPreCheckJar() throws IOException {
() -> {
try {
classLoaderService.getClassLoader(
3L,
Lists.newArrayList(new URL("file:///fake.jar")),
mockNodeEngine);
3L, Lists.newArrayList(new URL("file:/fake.jar")), mockNodeEngine);
} catch (ClassLoaderException e) {
Assertions.assertTrue(
e.getMessage()
Expand All @@ -138,7 +136,7 @@ void testPreCheckJar() throws IOException {

// Creating a temporary jar file for testing
File tempJar = File.createTempFile("console", ".jar");
String tempJarPath = "file://" + tempJar.getPath();
String tempJarPath = tempJar.toURI().toURL().toString();

// Test case to check successful class loader creation with existing jar file
Assertions.assertDoesNotThrow(
Expand Down

0 comments on commit 39c8eb5

Please sign in to comment.