mirror of https://github.com/grpc/grpc-java.git
xds: fix bug of verifying xDS requests with ordered resource names
Use matcher that takes care of resource name ordering for comparing requests.
This commit is contained in:
parent
e66ab4e63b
commit
942c1c6b5f
|
|
@ -1474,9 +1474,10 @@ public class XdsClientImplTest {
|
||||||
// Client sent a new CDS request for all interested resources.
|
// Client sent a new CDS request for all interested resources.
|
||||||
verify(requestObserver)
|
verify(requestObserver)
|
||||||
.onNext(
|
.onNext(
|
||||||
eq(buildDiscoveryRequest(NODE, "0",
|
argThat(
|
||||||
ImmutableList.of("cluster-foo.googleapis.com", "cluster-bar.googleapis.com"),
|
new DiscoveryRequestMatcher("0",
|
||||||
XdsClientImpl.ADS_TYPE_URL_CDS, "0000")));
|
ImmutableList.of("cluster-foo.googleapis.com", "cluster-bar.googleapis.com"),
|
||||||
|
XdsClientImpl.ADS_TYPE_URL_CDS, "0000")));
|
||||||
|
|
||||||
// Management server sends back a CDS response with Cluster for all requested cluster.
|
// Management server sends back a CDS response with Cluster for all requested cluster.
|
||||||
clusters = ImmutableList.of(
|
clusters = ImmutableList.of(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue