Skip to content

Commit

Permalink
fix lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
0yukali0 committed Sep 10, 2023
1 parent 04c70e5 commit 2b0c731
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/user_quota_tracing/user_quota_tracing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ type ExpectedGroupQuota struct {
Queues map[string]ExpectedQueue
}

func checkGroupUsage(FromREST bool, groupsUsage []*dao.GroupResourceUsageDAOInfo, expectedGroupUsage map[string]ExpectedGroupQuota) {
func checkGroupUsage(fromREST bool, groupsUsage []*dao.GroupResourceUsageDAOInfo, expectedGroupUsage map[string]ExpectedGroupQuota) {
var groupUsage *dao.GroupResourceUsageDAOInfo
var err error
for groupName, expectedGroup := range expectedGroupUsage {
By(fmt.Sprintf("GroupUsage: Check group resource usage of %s in each queue", groupName))
if FromREST {
if fromREST {
groupUsage, err = RestClient.GetGroupUsage(DEFAULT_PARTITION, groupName)
Ω(err).NotTo(HaveOccurred())
} else {
Expand Down Expand Up @@ -231,12 +231,12 @@ type ExpectedUserQuota struct {
Queues map[string]ExpectedQueue
}

func checkUserUsage(FromREST bool, usersUsage []*dao.UserResourceUsageDAOInfo, expectedUserUsage map[string]ExpectedUserQuota) {
func checkUserUsage(fromREST bool, usersUsage []*dao.UserResourceUsageDAOInfo, expectedUserUsage map[string]ExpectedUserQuota) {
var userUsage *dao.UserResourceUsageDAOInfo
var err error
for userName, expectedUserUsage := range expectedUserUsage {
By(fmt.Sprintf("UserUsage: Check group resource usage of %s in each queue", userName))
if FromREST {
if fromREST {
userUsage, err = RestClient.GetUserUsage(DEFAULT_PARTITION, userName)
Ω(err).NotTo(HaveOccurred())
} else {
Expand Down

0 comments on commit 2b0c731

Please sign in to comment.