You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/11/03 14:04:34 UTC

[GitHub] [trafficcontrol] mattjackson220 commented on a change in pull request #5186: Check cache availability by IP version instead of filtering later

mattjackson220 commented on a change in pull request #5186:
URL: https://github.com/apache/trafficcontrol/pull/5186#discussion_r513761174



##########
File path: traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/router/TrafficRouterTest.java
##########
@@ -155,6 +156,55 @@ public void itCreatesHttpResults() throws Exception {
         assertThat(httpRouteResult.getUrl().toString(), equalTo("http://atscache.kabletown.net/index.html"));
     }
 
+    @Test
+    public void itFiltersByIPAvailability() throws Exception {
+
+        DeliveryService ds = mock(DeliveryService.class);
+
+        Cache cacheIPv4 = mock(Cache.class);
+        cacheIPv4.setIsAvailable(true);

Review comment:
       duplicated at line 172




----------------------------------------------------------------
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.

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