zrhoffman commented on code in PR #7774:
URL: https://github.com/apache/trafficcontrol/pull/7774#discussion_r1322062680


##########
lib/go-tc/totest/tenants.go:
##########
@@ -41,13 +42,13 @@ func DeleteTestTenants(t *testing.T, cl *toclient.Session) {
        assert.NoError(t, err, "Cannot get Tenants: %v - alerts: %+v", err, 
tenants.Alerts)
 
        for _, tenant := range tenants.Response {
-               if tenant.Name == "root" {
+               if tenant.Name == util.Ptr("root") {

Review Comment:
   This `if` statement will never execute, `util.Ptr` allocates a new object 
which will always be different than `tenant.Name`, which is a pointer



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