@@ -205,7 +205,7 @@ var _ = Context("Inside the default namespace", func() {
205
205
// We need to figure out the behavior. See https://github.com/ray-project/kuberay/issues/1736 for more details.
206
206
Eventually (
207
207
getClusterState (ctx , "default" , myRayCluster .Name ),
208
- time .Second * (utils .RAYCLUSTER_DEFAULT_REQUEUE_SECONDS + 5 ), time .Millisecond * 500 ).Should (Equal (rayv1 .Ready ))
208
+ time .Second * (time . Duration ( utils .MustGetEnvInt ( utils . RAYCLUSTER_DEFAULT_REQUEUE_SECONDS_ENV ) + 5 ) ), time .Millisecond * 500 ).Should (Equal (rayv1 .Ready ))
209
209
})
210
210
211
211
It ("should re-create a deleted worker" , func () {
@@ -311,7 +311,7 @@ var _ = Context("Inside the default namespace", func() {
311
311
It ("cluster's .status.state should be updated to 'suspended' shortly after all Pods are terminated" , func () {
312
312
Eventually (
313
313
getClusterState (ctx , "default" , myRayCluster .Name ),
314
- time .Second * (utils .RAYCLUSTER_DEFAULT_REQUEUE_SECONDS + 5 ), time .Millisecond * 500 ).Should (Equal (rayv1 .Suspended ))
314
+ time .Second * (time . Duration ( utils .MustGetEnvInt ( utils . RAYCLUSTER_DEFAULT_REQUEUE_SECONDS_ENV ) + 5 ) ), time .Millisecond * 500 ).Should (Equal (rayv1 .Suspended ))
315
315
})
316
316
317
317
It ("set suspend to false and then revert it to true before all Pods are running" , func () {
@@ -363,7 +363,7 @@ var _ = Context("Inside the default namespace", func() {
363
363
// RayCluster should be in Suspended state.
364
364
Eventually (
365
365
getClusterState (ctx , "default" , myRayCluster .Name ),
366
- time .Second * (utils .RAYCLUSTER_DEFAULT_REQUEUE_SECONDS + 5 ), time .Millisecond * 500 ).Should (Equal (rayv1 .Suspended ))
366
+ time .Second * (time . Duration ( utils .MustGetEnvInt ( utils . RAYCLUSTER_DEFAULT_REQUEUE_SECONDS_ENV ) + 5 ) ), time .Millisecond * 500 ).Should (Equal (rayv1 .Suspended ))
367
367
})
368
368
369
369
It ("should run all head and worker pods if un-suspended" , func () {
@@ -402,7 +402,7 @@ var _ = Context("Inside the default namespace", func() {
402
402
It ("cluster's .status.state should be updated back to 'ready' after being un-suspended" , func () {
403
403
Eventually (
404
404
getClusterState (ctx , "default" , myRayCluster .Name ),
405
- time .Second * (utils .RAYCLUSTER_DEFAULT_REQUEUE_SECONDS + 5 ), time .Millisecond * 500 ).Should (Equal (rayv1 .Ready ))
405
+ time .Second * (time . Duration ( utils .MustGetEnvInt ( utils . RAYCLUSTER_DEFAULT_REQUEUE_SECONDS_ENV ) + 5 ) ), time .Millisecond * 500 ).Should (Equal (rayv1 .Ready ))
406
406
})
407
407
})
408
408
})
0 commit comments