]> git.feebdaed.xyz Git - 0xmirror/grpc-go.git/commitdiff
xds_test: Avoid buffering ack requests in ADS streams (#8395)
authorArjan Singh Bal <46515553+arjan-bal@users.noreply.github.com>
Mon, 16 Jun 2025 18:48:00 +0000 (00:18 +0530)
committerGitHub <noreply@github.com>
Mon, 16 Jun 2025 18:48:00 +0000 (00:18 +0530)
xds/server_ext_test.go

index 1d44c1bcceb9c3dfea4b8ee8506e339f22e0576b..381b93ebd53a0f2e94e1f6c38e2768b91a939e81 100644 (file)
@@ -220,6 +220,11 @@ func (s) TestServer_Basic(t *testing.T) {
        routeNamesCh := make(chan []string, 1)
        managementServer := e2e.StartManagementServer(t, e2e.ManagementServerOptions{
                OnStreamRequest: func(_ int64, req *v3discoverypb.DiscoveryRequest) error {
+                       // The test needs to only verify the names of resources being
+                       // subscribed to, we can skip ACKs.
+                       if req.GetVersionInfo() != "" {
+                               return nil
+                       }
                        switch req.GetTypeUrl() {
                        case "type.googleapis.com/envoy.config.listener.v3.Listener":
                                select {