@@ -21,6 +21,7 @@ import (
2121 "fmt"
2222 "maps"
2323 "strconv"
24+ "time"
2425
2526 . "github.com/onsi/ginkgo/v2"
2627 . "github.com/onsi/gomega"
@@ -100,7 +101,7 @@ var _ = Describe("Webhosting Operator", Label(webhostingv1alpha1.WebhostingOpera
100101 }, SpecTimeout (MediumTimeout ))
101102 }
102103
103- itWebsitesShouldBeReady ()
104+ itWebsitesShouldBeReady (MediumTimeout )
104105 })
105106
106107 describeScaleController ("adding a shard" , 4 )
@@ -115,15 +116,15 @@ func describeScaleController(text string, replicas int32) {
115116
116117 itCreateWebsites ()
117118 itShouldAssignObjectsToAvailableShards ()
118- itWebsitesShouldBeReady ()
119+ itWebsitesShouldBeReady (MediumTimeout )
119120
120121 itScaleController (replicas )
121122 itDeploymentShouldBeAvailable (replicas )
122123 itControllerRingShouldHaveAvailableShards (replicas )
123124 itShouldRecognizeReadyShardLeases (int (replicas ))
124125
125126 itShouldAssignObjectsToAvailableShards ()
126- itWebsitesShouldBeReady ()
127+ itWebsitesShouldBeReady (LongTimeout )
127128 })
128129}
129130
@@ -201,7 +202,7 @@ func itCreateWebsites() {
201202 }, SpecTimeout (MediumTimeout ))
202203}
203204
204- func itWebsitesShouldBeReady () {
205+ func itWebsitesShouldBeReady (timeout time. Duration ) {
205206 GinkgoHelper ()
206207
207208 It ("all Websites should be ready" , func (ctx SpecContext ) {
@@ -210,7 +211,7 @@ func itWebsitesShouldBeReady() {
210211 HaveField ("Status.Phase" , webhostingv1alpha1 .PhaseReady ),
211212 )),
212213 )
213- }, SpecTimeout (MediumTimeout ))
214+ }, SpecTimeout (timeout ))
214215}
215216
216217func itScaleController (replicas int32 ) {
0 commit comments