Skip to content

Commit

Permalink
Set permit timeout to 10s in test
Browse files Browse the repository at this point in the history
Signed-off-by: kerthcet <kerthcet@gmail.com>
  • Loading branch information
kerthcet committed Jun 28, 2024
1 parent 8cf93c8 commit a7ef06d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scheduler/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,7 @@ func (f fakePermitPlugin) Name() string {

const (
podWaitingReason = "podWaiting"
permitTimeout = 10 * time.Second
)

func (f fakePermitPlugin) Permit(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) (*framework.Status, time.Duration) {
Expand All @@ -1193,7 +1194,7 @@ func (f fakePermitPlugin) Permit(ctx context.Context, state *framework.CycleStat
f.eventRecorder.Eventf(p, nil, v1.EventTypeWarning, podWaitingReason, "", "")
}()

return framework.NewStatus(framework.Wait), 100 * time.Second
return framework.NewStatus(framework.Wait), permitTimeout
}

var _ framework.PermitPlugin = &fakePermitPlugin{}

0 comments on commit a7ef06d

Please sign in to comment.