Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Bytsko committed Jun 15, 2018
1 parent fe1d153 commit 88c7fbb
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,24 @@
/**
* Created by rnorth on 11/06/2016.
*/
public class DockerComposeOverrideTest {
public class DockerComposeLocalOverrideTest {

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

@Rule
public DockerComposeContainer compose =
new DockerComposeContainer(
new File(this.getClass().getResource("docker-compose-base.yml").toURI()),
new File(this.getClass().getResource("docker-compose-non-default-override.yml").toURI()))
.withExposedService(SERVICE_NAME, SERVICE_PORT);

public DockerComposeOverrideTest() throws URISyntaxException {}
new File("src/test/resources/docker-compose-base.yml"),
new File("src/test/resources/docker-compose-non-default-override.yml"))
.withExposedService(SERVICE_NAME, SERVICE_PORT)
.withLocalCompose(true);

@BeforeClass
public static void checkVersion() {
Assume.assumeTrue(TestEnvironment.dockerApiAtLeast("1.22"));
}


@Test(timeout = 30_000)
public void testEnvVar() {
BufferedReader reader = Unreliables.retryUntilSuccess(10, TimeUnit.SECONDS, () -> {
Expand Down

0 comments on commit 88c7fbb

Please sign in to comment.