Skip to content

Commit 49a5412

Browse files
committed
e2e: increase website timeout
1 parent 5ee5c3f commit 49a5412

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

webhosting-operator/test/e2e/e2e_suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const (
5252

5353
ShortTimeout = 10 * time.Second
5454
MediumTimeout = time.Minute
55+
LongTimeout = 3 * time.Minute
5556
)
5657

5758
var (

webhosting-operator/test/e2e/webhosting_operator_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

216217
func itScaleController(replicas int32) {

0 commit comments

Comments
 (0)