dewrich closed pull request #2423: Fix TO API Test for DS enum change
URL: https://github.com/apache/trafficcontrol/pull/2423
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/testing/api/v13/deliveryservices_test.go 
b/traffic_ops/testing/api/v13/deliveryservices_test.go
index c9432550d..d28da8ee2 100644
--- a/traffic_ops/testing/api/v13/deliveryservices_test.go
+++ b/traffic_ops/testing/api/v13/deliveryservices_test.go
@@ -70,7 +70,7 @@ func CreateTestDeliveryServices(t *testing.T) {
                }
                ds.CDNID = respCDNs[0].ID
 
-               respTypes, _, err := TOSession.GetTypeByName(ds.Type)
+               respTypes, _, err := TOSession.GetTypeByName(string(ds.Type))
                if err != nil {
                        t.Fatalf("cannot GET Type by name: %v\n", err)
                }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to