Skip to content

Commit a7ef06d

Browse files
committed
Set permit timeout to 10s in test
Signed-off-by: kerthcet <[email protected]>
1 parent 8cf93c8 commit a7ef06d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/scheduler/scheduler_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ func (f fakePermitPlugin) Name() string {
11851185

11861186
const (
11871187
podWaitingReason = "podWaiting"
1188+
permitTimeout = 10 * time.Second
11881189
)
11891190

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

1196-
return framework.NewStatus(framework.Wait), 100 * time.Second
1197+
return framework.NewStatus(framework.Wait), permitTimeout
11971198
}
11981199

11991200
var _ framework.PermitPlugin = &fakePermitPlugin{}

0 commit comments

Comments
 (0)