Skip to content

Commit

Permalink
scheduler: fix ReplaceQuotas ut
Browse files Browse the repository at this point in the history
Signed-off-by: chuanyun.lcy <chuanyun.lcy@alibaba-inc.com>
  • Loading branch information
chuanyun.lcy committed Jan 10, 2025
1 parent 236bcc9 commit 4c21cf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/scheduler/plugins/elasticquota/quota_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ func TestPlugin_ReplaceQuotas(t *testing.T) {
assert.Nil(t, err)
plugin := p.(*Plugin)

// ReplaceQuotas will conflict with QuotaEventHandler. sleep 1 seconds to avoid it.
time.Sleep(time.Second)
plugin.ReplaceQuotas(quotas)

plugin.groupQuotaManager.UpdateClusterTotalResource(createResourceList(1000, 1000))
Expand Down

0 comments on commit 4c21cf2

Please sign in to comment.