File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
core/src/test/java/org/testcontainers/dockerclient Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 55import org .junit .Test ;
66import org .testcontainers .DockerClientFactory ;
77import org .testcontainers .containers .GenericContainer ;
8- import org .testcontainers .containers .startupcheck .OneShotStartupCheckStrategy ;
98import org .testcontainers .utility .DockerImageName ;
109
1110import java .util .List ;
@@ -16,16 +15,15 @@ public class AmbiguousImagePullTest {
1615 public void testNotUsingParse () {
1716 DockerClient client = DockerClientFactory .instance ().client ();
1817 List <Image > alpineImages = client .listImagesCmd ()
19- .withImageNameFilter ("alpine :latest" )
18+ .withImageNameFilter ("testcontainers/helloworld :latest" )
2019 .exec ();
2120 for (Image alpineImage : alpineImages ) {
2221 client .removeImageCmd (alpineImage .getId ()).exec ();
2322 }
2423
2524 try (
26- final GenericContainer <?> container = new GenericContainer <>(DockerImageName .parse ("alpine" ))
27- .withCommand ("/bin/sh" , "-c" , "sleep 0" )
28- .withStartupCheckStrategy (new OneShotStartupCheckStrategy ())
25+ final GenericContainer <?> container = new GenericContainer <>(DockerImageName .parse ("testcontainers/helloworld" ))
26+ .withExposedPorts (8080 )
2927 ) {
3028 container .start ();
3129 // do nothing other than start and stop
You can’t perform that action at this time.
0 commit comments