From c17ecae07067e47e802c506638d8434f8e1f0a51 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Wed, 18 Dec 2019 21:50:23 -0500 Subject: [PATCH] Ignores weight concurrency test --- .../filter/WeightCalculatorWebFilterConcurrentTests.java | 8 ++++++++ .../src/test/resources/application-weights-concurrent.yml | 4 ++++ 2 files changed, 12 insertions(+) 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