File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ var enforceCmd = &cobra.Command{
186186 errch <- nil
187187 }()
188188
189- // Timeout of 10 seconds for the polling routine to finish
189+ // Timeout of 1 minute for the polling routine to finish
190190 select {
191191 case err := <- errch :
192192 if err != nil {
@@ -201,8 +201,8 @@ var enforceCmd = &cobra.Command{
201201 default :
202202 return fmt .Errorf ("enforce policy task %s done with unknown status %s" , enforcePolicy .Data .EnforcePolicy .ID , taskStatus )
203203 }
204- case <- time .After (10 * time .Second ):
205- return fmt .Errorf ("enforce policy task did not finish after 10 seconds , quiting" )
204+ case <- time .After (1 * time .Minute ):
205+ return fmt .Errorf ("enforce policy task did not finish after 1 minute , quiting" )
206206 }
207207
208208 return nil
You can’t perform that action at this time.
0 commit comments