Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-10775: LeaseUpdateSocketTimeoutIT still wants a mongo:4.2 image #1433

Merged
merged 1 commit into from Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -55,8 +55,6 @@ public class LeaseUpdateSocketTimeoutIT {

private static final DockerImageName TOXIPROXY_IMAGE = DockerImageName.parse("ghcr.io/shopify/toxiproxy:2.6.0");

private static final DockerImageName MONGODB_IMAGE = DockerImageName.parse("mongo:4.2");

private static final int MONGODB_DEFAULT_PORT = 27017;

private static final int LEASE_SO_TIMEOUT = 50;
Expand All @@ -65,7 +63,7 @@ public class LeaseUpdateSocketTimeoutIT {
public Network network = Network.newNetwork();

@Rule
public MongoDBContainer mongoDBContainer = new MongoDBContainer(MONGODB_IMAGE)
public MongoDBContainer mongoDBContainer = new MongoDBContainer(MongoDockerRule.getDockerImageName())
.withNetwork(network)
.withNetworkAliases("mongo")
.withExposedPorts(MONGODB_DEFAULT_PORT);
Expand Down
Expand Up @@ -132,4 +132,6 @@ public String getHost() {
public static boolean isDockerAvailable() {
return DOCKER_AVAILABLE;
}

public static DockerImageName getDockerImageName() { return DOCKER_IMAGE_NAME; }
}