fix: preheat-e2e timeout (#602)
Signed-off-by: zzy987 <67889264+zzy987@users.noreply.github.com>
This commit is contained in:
parent
6336925533
commit
d68ba8b944
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue