dmohan001c commented on a change in pull request #6003:
URL: https://github.com/apache/trafficcontrol/pull/6003#discussion_r708210680



##########
File path: traffic_ops/testing/api/v3/profiles_test.go
##########
@@ -83,12 +83,28 @@ func GetTestProfilesIMS(t *testing.T) {
                if reqInf.StatusCode != http.StatusNotModified {
                        t.Fatalf("Expected 304 status code, got %v", 
reqInf.StatusCode)
                }
-               _, reqInf, err = 
TOSession.GetProfileByParameterWithHdr(pr.Parameter, header)
-               if err != nil {
-                       t.Fatalf("Expected no error, but got %v", err.Error())
-               }
-               if reqInf.StatusCode != http.StatusNotModified {
-                       t.Fatalf("Expected 304 status code, got %v", 
reqInf.StatusCode)
+               if len(pr.Parameters) > 0 {
+                       parameter := pr.Parameters[0]
+                       respParameter, _, _ := 
TOSession.GetParameterByName(*parameter.Name)

Review comment:
       added error checks.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to