Skip to content

Commit 53a0926

Browse files
authored
xds: fix race in simpleFlowControl (#12547)
1 parent f36defa commit 53a0926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xds/src/test/java/io/grpc/xds/GrpcXdsClientImplTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3521,7 +3521,7 @@ public void simpleFlowControl() throws Exception {
35213521
TIME_INCREMENT);
35223522
barrier.await();
35233523
verify(edsResourceWatcher, atLeastOnce()).onResourceChanged(edsUpdateCaptor.capture());
3524-
StatusOr<EdsUpdate> statusOrUpdate = edsUpdateCaptor.getValue();
3524+
StatusOr<EdsUpdate> statusOrUpdate = edsUpdateCaptor.getAllValues().get(0);
35253525
assertThat(statusOrUpdate.hasValue()).isTrue();
35263526
EdsUpdate edsUpdate = statusOrUpdate.getValue();
35273527
validateGoldenClusterLoadAssignment(edsUpdate);

0 commit comments

Comments
 (0)