Skip to content

Commit

Permalink
fix flaky xds test due to verification race (grpc#10798)
Browse files Browse the repository at this point in the history
  • Loading branch information
YifeiZhuang committed Jan 9, 2024
1 parent 5b082ca commit b2bb0d7
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 b2bb0d7

Please sign in to comment.