Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisoka-X committed Jun 5, 2023
1 parent 4d5b417 commit 55ac1e5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.apache.seatunnel.connectors.seatunnel.cdc.mysql.testutils.UniqueDatabase;
import org.apache.seatunnel.e2e.common.TestResource;
import org.apache.seatunnel.e2e.common.TestSuiteBase;
import org.apache.seatunnel.e2e.common.container.ContainerExtendedFactory;
import org.apache.seatunnel.e2e.common.container.CopyFileBeforeStart;
import org.apache.seatunnel.e2e.common.container.EngineType;
import org.apache.seatunnel.e2e.common.container.TestContainer;
Expand Down Expand Up @@ -120,16 +119,6 @@ private static MySqlContainer createMySqlContainer(MySqlVersion version) {

private static PostgreSQLContainer<?> POSTGRESQL_CONTAINER;

@TestContainerExtension
private final ContainerExtendedFactory extendedFactory =
container -> {
Container.ExecResult extraCommands =
container.execInContainer(
"bash", "-c", "cd /tmp/seatunnel/lib && curl -O " + PG_DRIVER_JAR);

Assertions.assertEquals(0, extraCommands.getExitCode());
};

@TestContainerExtension
private final CopyFileBeforeStart copyFileBeforeStart =
() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void startUp() throws Exception {
if (filePaths != null) {
filePaths.forEach(
filePath -> {
jobManager.copyFileToContainer(
jobManager.withCopyFileToContainer(
MountableFile.forHostPath(filePath),
SEATUNNEL_HOME + "/plugins/jdbc/lib");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void startUp() throws Exception {
if (copyFilePaths != null) {
copyFilePaths.forEach(
copyFilePath -> {
master.copyFileToContainer(
master.withCopyFileToContainer(
MountableFile.forHostPath(copyFilePath),
SEATUNNEL_HOME + "/plugins/jdbc/lib");
});
Expand Down

0 comments on commit 55ac1e5

Please sign in to comment.