Skip to content

Commit

Permalink
Fixed bug for using a wrong captor in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
voidzcy committed Nov 13, 2019
1 parent c404226 commit dbface1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xds/src/test/java/io/grpc/xds/XdsClientImplTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ public void receivedEndpointUpdateNotifiedToWatcherImmediately() {
// notified to the newly added watcher immediately.
ArgumentCaptor<EndpointUpdate> endpointUpdateCaptor2 = ArgumentCaptor.forClass(null);
verify(watcher2).onEndpointChanged(endpointUpdateCaptor2.capture());
EndpointUpdate endpointUpdate2 = endpointUpdateCaptor1.getValue();
EndpointUpdate endpointUpdate2 = endpointUpdateCaptor2.getValue();
assertThat(endpointUpdate2.getClusterName()).isEqualTo("cluster-foo.googleapis.com");
assertThat(endpointUpdate2.getLocalityLbEndpointsMap())
.containsExactly(
Expand Down

0 comments on commit dbface1

Please sign in to comment.