manirajv06 commented on code in PR #758:
URL: https://github.com/apache/yunikorn-core/pull/758#discussion_r1441385897


##########
pkg/scheduler/ugm/group_tracker_test.go:
##########
@@ -32,14 +32,16 @@ func TestGTIncreaseTrackedResource(t *testing.T) {
        // root->parent->child1->child12
        // root->parent->child2
        // root->parent->child12 (similar name like above leaf queue, but it is 
being treated differently as similar names are allowed)
-       GetUserManager()
+       manager := GetUserManager()
        user := &security.UserGroup{User: "test", Groups: []string{"test"}}
        groupTracker := newGroupTracker(user.User)
 
        usage1, err := resources.NewResourceFromConf(map[string]string{"mem": 
"10M", "vcore": "10"})
        if err != nil {
                t.Errorf("new resource create returned error or wrong resource: 
error %t, res %v", err, usage1)
        }
+

Review Comment:
   As discussed, we can take this up in a follow up jira as there are lot more 
places to cover



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