From 93e0e92a02280d7706ddbfaa2f8db2c452986255 Mon Sep 17 00:00:00 2001 From: jcarranzan Date: Wed, 30 Oct 2024 14:50:34 +0100 Subject: [PATCH] remove redundant code --- .../KeycloakGenericDockerContainerManagedResource.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/quarkus-test-service-keycloak/src/main/java/io/quarkus/test/services/containers/KeycloakGenericDockerContainerManagedResource.java b/quarkus-test-service-keycloak/src/main/java/io/quarkus/test/services/containers/KeycloakGenericDockerContainerManagedResource.java index 68ab2f2a9..d5bc35a93 100644 --- a/quarkus-test-service-keycloak/src/main/java/io/quarkus/test/services/containers/KeycloakGenericDockerContainerManagedResource.java +++ b/quarkus-test-service-keycloak/src/main/java/io/quarkus/test/services/containers/KeycloakGenericDockerContainerManagedResource.java @@ -60,8 +60,6 @@ protected GenericContainer initContainer() { container.withCreateContainerCmdModifier(cmd -> Optional.ofNullable(cmd.getHostConfig()) .ifPresent(config -> config.withMemory(convertMiBtoBytes(model.getMemoryLimitMiB())))); } - container.withCreateContainerCmdModifier(cmd -> Optional.ofNullable(cmd.getHostConfig()) - .ifPresent(config -> config.withMemory(convertMiBtoBytes(model.getMemoryLimitMiB())))); if (isReusable()) { Log.info(model.getContext().getOwner(), "Running container on Reusable mode");