Skip to content

Commit 88c7fbb

Browse files
author
Stanislav Bytsko
committed
Fix test
1 parent fe1d153 commit 88c7fbb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

core/src/test/java/org/testcontainers/junit/DockerComposeOverrideTest.java renamed to core/src/test/java/org/testcontainers/junit/DockerComposeLocalOverrideTest.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,24 @@
2222
/**
2323
* Created by rnorth on 11/06/2016.
2424
*/
25-
public class DockerComposeOverrideTest {
25+
public class DockerComposeLocalOverrideTest {
2626

2727
private static final int SERVICE_PORT = 3000;
2828
private static final String SERVICE_NAME = "alpine_1";
2929

3030
@Rule
3131
public DockerComposeContainer compose =
3232
new DockerComposeContainer(
33-
new File(this.getClass().getResource("docker-compose-base.yml").toURI()),
34-
new File(this.getClass().getResource("docker-compose-non-default-override.yml").toURI()))
35-
.withExposedService(SERVICE_NAME, SERVICE_PORT);
36-
37-
public DockerComposeOverrideTest() throws URISyntaxException {}
33+
new File("src/test/resources/docker-compose-base.yml"),
34+
new File("src/test/resources/docker-compose-non-default-override.yml"))
35+
.withExposedService(SERVICE_NAME, SERVICE_PORT)
36+
.withLocalCompose(true);
3837

3938
@BeforeClass
4039
public static void checkVersion() {
4140
Assume.assumeTrue(TestEnvironment.dockerApiAtLeast("1.22"));
4241
}
4342

44-
4543
@Test(timeout = 30_000)
4644
public void testEnvVar() {
4745
BufferedReader reader = Unreliables.retryUntilSuccess(10, TimeUnit.SECONDS, () -> {

0 commit comments

Comments
 (0)