Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
Co-authored-by: 陳昱霖(Yu-Lin Chen) <[email protected]>
  • Loading branch information
ryankert01 and chenyulin0719 authored Dec 28, 2024
1 parent 925a858 commit 593469d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/scheduler/ugm/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,12 +732,7 @@ func TestDecreaseTrackedResourceForGroupTracker(t *testing.T) {
assert.Equal(t, groupTracker.queueTracker.childQueueTrackers["parent"].runningApplications[TestApp1], true)
assert.Equal(t, resources.Equals(groupTracker.queueTracker.childQueueTrackers["parent"].resourceUsage, usage), true)

conf.Queues[0].Queues[0].Limits = []configs.Limit{
{
Limit: "parent queue limit for a specific group",
Groups: user.Groups,
},
}
conf.Queues[0].Queues[0].Limits = nil
assert.NilError(t, manager.UpdateConfig(conf.Queues[0], "root"))

manager.DecreaseTrackedResource("root.parent", TestApp1, usage, user, true)
Expand Down

0 comments on commit 593469d

Please sign in to comment.