Skip to content

Commit

Permalink
scheduler: fix ReplaceQuotas ut
Browse files Browse the repository at this point in the history
Signed-off-by: shaloulcy <[email protected]>
  • Loading branch information
shaloulcy committed Jan 13, 2025
1 parent 236bcc9 commit 7979414
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 7979414

Please sign in to comment.