Skip to content

Commit

Permalink
[xds_client_nack_part] copy slices
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Sep 8, 2021
1 parent cd9f79e commit 9d0596b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xds/csds/csds_test.go
Expand Up @@ -212,10 +212,10 @@ func TestCSDS(t *testing.T) {

const nackResourceIdx = 0
var (
nackListeners = listeners
nackRoutes = routes
nackClusters = clusters
nackEndpoints = endpoints
nackListeners = append([]*v3listenerpb.Listener{}, listeners...)
nackRoutes = append([]*v3routepb.RouteConfiguration{}, routes...)
nackClusters = append([]*v3clusterpb.Cluster{}, clusters...)
nackEndpoints = append([]*v3endpointpb.ClusterLoadAssignment{}, endpoints...)
)
nackListeners[0] = &v3listenerpb.Listener{Name: ldsTargets[nackResourceIdx], ApiListener: &v3listenerpb.ApiListener{}} // 0 will be nacked. 1 will stay the same.
nackRoutes[0] = &v3routepb.RouteConfiguration{
Expand Down

0 comments on commit 9d0596b

Please sign in to comment.