Skip to content

Commit ffe7cc4

Browse files
author
Marcus Linke
committed
pin API version for integration tests
1 parent e1a1650 commit ffe7cc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/com/github/dockerjava/client/AbstractDockerClientTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public abstract class AbstractDockerClientTest extends Assert {
3838

3939
public static final Logger LOG = LoggerFactory.getLogger(AbstractDockerClientTest.class);
4040

41+
private String apiVersion = "1.19";
42+
4143
protected DockerClient dockerClient;
4244

4345
protected TestDockerCmdExecFactory dockerCmdExecFactory = new TestDockerCmdExecFactory(
@@ -68,7 +70,8 @@ protected DockerClientConfig config(String password) {
6870
if (password != null) {
6971
builder = builder.withPassword(password);
7072
}
71-
return builder.build();
73+
74+
return builder.withVersion(apiVersion).build();
7275
}
7376

7477
public void afterTest() {

0 commit comments

Comments
 (0)