Skip to content

Commit b75eb4a

Browse files
committed
fix: lint
1 parent d3aecf7 commit b75eb4a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/e2e/e2e_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ var _ = Describe("Manager", Ordered, func() {
167167
g.Expect(err).NotTo(HaveOccurred())
168168
g.Expect(output).To(Equal("Running"), "Incorrect controller-manager pod status")
169169
}
170-
Eventually(verifyControllerUp).Should(Succeed())
170+
Eventually(verifyControllerUp).WithTimeout(time.Minute).WithPolling(time.Second).Should(Succeed())
171171
})
172172

173173
It("should ensure the metrics endpoint is serving metrics", func() {
@@ -196,7 +196,7 @@ var _ = Describe("Manager", Ordered, func() {
196196
g.Expect(err).NotTo(HaveOccurred())
197197
g.Expect(output).To(ContainSubstring("8443"), "Metrics endpoint is not ready")
198198
}
199-
Eventually(verifyMetricsEndpointReady).Should(Succeed())
199+
Eventually(verifyMetricsEndpointReady).WithTimeout(time.Minute).WithPolling(time.Second).Should(Succeed())
200200

201201
By("verifying that the controller manager is serving the metrics server")
202202
verifyMetricsServerStarted := func(g Gomega) {
@@ -206,7 +206,7 @@ var _ = Describe("Manager", Ordered, func() {
206206
g.Expect(output).To(ContainSubstring("controller-runtime.metrics\tServing metrics server"),
207207
"Metrics server not yet started")
208208
}
209-
Eventually(verifyMetricsServerStarted).Should(Succeed())
209+
Eventually(verifyMetricsServerStarted).WithTimeout(time.Minute).WithPolling(time.Second).Should(Succeed())
210210

211211
By("creating the curl-metrics pod to access the metrics endpoint")
212212
cmd = exec.Command("kubectl", "run", "curl-metrics", "--restart=Never",

0 commit comments

Comments
 (0)