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 2018/05/18 17:21:26 UTC

[GitHub] dangogh closed pull request #2299: dereference string pointer when calling printf

dangogh closed pull request #2299: dereference string pointer when calling printf
URL: https://github.com/apache/incubator-trafficcontrol/pull/2299
 
 
   

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/roles_test.go b/traffic_ops/testing/api/v13/roles_test.go
index a518ca641..fac0657ea 100644
--- a/traffic_ops/testing/api/v13/roles_test.go
+++ b/traffic_ops/testing/api/v13/roles_test.go
@@ -84,7 +84,7 @@ func UpdateTestRoles(t *testing.T) {
 	}
 	respRole := resp[0]
 	if *respRole.Name != expectedRole {
-		t.Errorf("results do not match actual: %s, expected: %s\n", respRole.Name, expectedRole)
+		t.Errorf("results do not match actual: %s, expected: %s\n", *respRole.Name, expectedRole)
 	}
 
 	// Set the name back to the fixture value so we can delete it after
@@ -133,7 +133,7 @@ func DeleteTestRoles(t *testing.T) {
 		t.Errorf("error deleting Role role: %s\n", err.Error())
 	}
 	if len(roleResp) > 0 {
-		t.Errorf("expected Role : %s to be deleted\n", role.Name)
+		t.Errorf("expected Role : %s to be deleted\n", *role.Name)
 	}
 
 }


 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services