diff --git a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilterConcurrentTests.java b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilterConcurrentTests.java index 18ad99c4..2121ce35 100644 --- a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilterConcurrentTests.java +++ b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilterConcurrentTests.java @@ -22,7 +22,9 @@ import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import io.netty.util.internal.ThreadLocalRandom; +import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; @@ -76,7 +78,13 @@ public class WeightCalculatorWebFilterConcurrentTests { startTime = System.currentTimeMillis(); } + @After + public void teardown() { + executorService.shutdown(); + } + @Test + @Ignore public void WeightCalculatorWebFilter_threadSafeTest() { generateEvents(); diff --git a/spring-cloud-gateway-core/src/test/resources/application-weights-concurrent.yml b/spring-cloud-gateway-core/src/test/resources/application-weights-concurrent.yml index add12137..cdf2d4eb 100644 --- a/spring-cloud-gateway-core/src/test/resources/application-weights-concurrent.yml +++ b/spring-cloud-gateway-core/src/test/resources/application-weights-concurrent.yml @@ -2,3 +2,7 @@ test: concurrent: execution: timeInSeconds: 10 + +logging: + level: + org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter: INFO