From 748af2068b5e32e9e43a2edb543127395f5fdf4b Mon Sep 17 00:00:00 2001 From: Tomasz Kowalczewski Date: Fri, 20 Dec 2024 19:35:27 +0100 Subject: [PATCH] Re #134: Chnges to make nginx tests running. --- .../LokiAppenderHttpsUrlConnectionReverseProxyTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LokiAppenderHttpsUrlConnectionReverseProxyTest.java b/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LokiAppenderHttpsUrlConnectionReverseProxyTest.java index d5d2dd3..8ae652d 100644 --- a/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LokiAppenderHttpsUrlConnectionReverseProxyTest.java +++ b/log4j2-appender/src/test/java/pl/tkowalcz/tjahzi/log4j2/LokiAppenderHttpsUrlConnectionReverseProxyTest.java @@ -6,12 +6,13 @@ import org.junit.jupiter.api.Test; import org.testcontainers.containers.BindMode; import org.testcontainers.containers.NginxContainer; -import org.testcontainers.containers.wait.strategy.HttpWaitStrategy; import org.testcontainers.junit.jupiter.Container; import pl.tkowalcz.tjahzi.log4j2.infra.IntegrationTest; import pl.tkowalcz.tjahzi.log4j2.infra.LokiAssert; -import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.CoreMatchers.containsString; +import static org.hamcrest.CoreMatchers.equalTo; +import static org.hamcrest.CoreMatchers.hasItems; class LokiAppenderHttpsUrlConnectionReverseProxyTest extends IntegrationTest { @@ -34,7 +35,6 @@ class LokiAppenderHttpsUrlConnectionReverseProxyTest extends IntegrationTest { "/etc/nginx/passwords", BindMode.READ_ONLY ) - .waitingFor(new HttpWaitStrategy()) .withExposedPorts(81); @Override