ocket8888 commented on code in PR #7160:
URL: https://github.com/apache/trafficcontrol/pull/7160#discussion_r1007048872


##########
lib/go-atscfg/headerrewritedotconfig_test.go:
##########
@@ -496,42 +407,91 @@ func TestGetAssignedMids(t *testing.T) {
                        ID:         util.Ptr(2),
                        Status:     util.Ptr(string(tc.CacheStatusReported)),
                },
-
+       }
+       mids := []Server{
                {
                        Cachegroup: util.Ptr("mid1"),
                        CDNName:    util.Ptr("mycdn"),
                        HostName:   util.Ptr("midCache1"),
                        ID:         util.Ptr(3),
                        Status:     util.Ptr(string(tc.CacheStatusReported)),
+                       Type:       tc.MidTypePrefix,
                },
                {
                        Cachegroup: util.Ptr("mid2"),
                        CDNName:    util.Ptr("mycdn"),
                        HostName:   util.Ptr("midCache2"),
                        ID:         util.Ptr(4),
                        Status:     util.Ptr(string(tc.CacheStatusReported)),
+                       Type:       tc.MidTypePrefix,
                },
        }
+       allServers := append(edges, mids...)
+       _ = allServers
 
-       allDeliveryServices := []DeliveryService{{}, {}}
+       topology := tc.Topology{
+               Name: "mytopology",
+               Nodes: []tc.TopologyNode{
+                       {
+                               Cachegroup: "edge1",
+                               Parents:    []int{2},
+                       },
+                       {
+                               Cachegroup: "edge2",
+                               Parents:    []int{2},
+                       },
+                       {
+                               Cachegroup: "org1",
+                       },
+               },
+       }
+       _ = topology

Review Comment:
   I think this line does literally nothing



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to