Skip to content

Commit 576269a

Browse files
committed
Replace deprecated method
1 parent c021655 commit 576269a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/examples/custom_render/PgContainer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919

2020
import org.apache.ibatis.datasource.unpooled.UnpooledDataSource;
2121
import org.testcontainers.containers.PostgreSQLContainer;
22+
import org.testcontainers.utility.DockerImageName;
2223

2324
public class PgContainer extends PostgreSQLContainer<PgContainer> {
2425

2526
public PgContainer(String initScriptPath) {
26-
super();
27+
super(DockerImageName.parse(IMAGE).withTag(DEFAULT_TAG));
2728
withInitScript(initScriptPath);
2829
}
2930

0 commit comments

Comments
 (0)