Skip to content

Commit

Permalink
fix flaky xds test due to verification race (#10798) (#10808)
Browse files Browse the repository at this point in the history
  • Loading branch information
YifeiZhuang authored Jan 10, 2024
1 parent 2531563 commit 5606081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xds/src/test/java/io/grpc/xds/XdsClientImplTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -3010,10 +3010,10 @@ public void flowControlAbsent() throws Exception {
+ "Cluster cluster.googleapis.com2: unspecified cluster discovery type";
call.verifyRequestNack(CDS, Arrays.asList(CDS_RESOURCE, anotherCdsResource), VERSION_1, "0001",
NODE, Arrays.asList(errorMsg));
verify(anotherWatcher).onResourceDoesNotExist(eq(anotherCdsResource));
barrier.await();
latch.await(10, TimeUnit.SECONDS);
verify(cdsResourceWatcher, times(2)).onChanged(any());
verify(anotherWatcher).onResourceDoesNotExist(eq(anotherCdsResource));
verify(anotherWatcher).onError(any());
}

Expand Down

0 comments on commit 5606081

Please sign in to comment.