fix: preheat-e2e timeout (#602)

Signed-off-by: zzy987 <67889264+zzy987@users.noreply.github.com>
This commit is contained in:
zzy987 2021-09-03 18:31:57 +08:00 committed by Gaius
parent 6336925533
commit d68ba8b944
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
1 changed files with 2 additions and 2 deletions

View File

@ -180,9 +180,9 @@ var _ = Describe("Preheat with manager", func() {
}) })
func waitForDone(preheat *types.Preheat, pod *e2eutil.PodExec) bool { func waitForDone(preheat *types.Preheat, pod *e2eutil.PodExec) bool {
ticker := time.NewTicker(time.Second * 3) ticker := time.NewTicker(3 * time.Second)
defer ticker.Stop() defer ticker.Stop()
ctx, cancel := context.WithTimeout(context.Background(), time.Minute*5) ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel() defer cancel()
for { for {
select { select {