impl 'IsWait' functions

Co-authored-by: Alex Wang <453102040@qq.com>
This commit is contained in:
shinta
2022-04-14 16:06:37 +09:00
parent 621c4aa599
commit 22984402ab
4 changed files with 25 additions and 4 deletions

View File

@@ -1158,7 +1158,7 @@ func (f *frameworkImpl) RunPermitPlugins(ctx context.Context, state *framework.C
status.SetFailedPlugin(pl.Name())
return status
}
if status.Code() == framework.Wait {
if status.IsWait() {
// Not allowed to be greater than maxTimeout.
if timeout > maxTimeout {
timeout = maxTimeout