Skip to content
Permalink
Browse files
fix: Remove a flacky test in FlowControllerTest (#1360)
It is a temporary workaround. More details here: #1359
  • Loading branch information
vam-google committed May 3, 2021
1 parent 18e4f8b commit 2cca0bf9e96271dd52e8bffa00b8f2d45d358d35
Showing with 4 additions and 0 deletions.
  1. +4 −0 gax/src/test/java/com/google/api/gax/batching/FlowControllerTest.java
@@ -50,6 +50,7 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@@ -538,6 +539,9 @@ public void testConcurrentUpdateThresholds_blocking() throws Exception {
testBlockingReserveRelease(flowController, 0, expectedValue);
}

// This test is very flaky. Remove @Ignore once https://github.com/googleapis/gax-java/issues/1359
// is fixed.
@Ignore
@Test
public void testConcurrentUpdateThresholds_nonBlocking() throws Exception {
int initialValue = 5000;

0 comments on commit 2cca0bf

Please sign in to comment.