Skip to content

Commit fb730f6

Browse files
committed
Adds curl timeout and interval
Signed-off-by: Daneyon Hansen <[email protected]>
1 parent 6398743 commit fb730f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/e2e/e2e_suite_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ const (
5151
defaultModelReadyTimeout = 10 * time.Minute
5252
// defaultInterval is the default interval to check if a resource exists or ready conditions.
5353
defaultInterval = time.Millisecond * 250
54+
// defaultCurlInterval is the default interval to run the test curl command.
55+
defaultCurlInterval = time.Second * 5
5456
// nsName is the name of the Namespace used for tests.
5557
// TODO [danehans]: Must be "default" until https://github.com/kubernetes-sigs/gateway-api-inference-extension/issues/227 is fixed
5658
nsName = "default"
@@ -168,6 +170,7 @@ var (
168170
readyTimeout = getTimeout("READY_TIMEOUT", defaultReadyTimeout)
169171
modelReadyTimeout = getTimeout("MODEL_READY_TIMEOUT", defaultModelReadyTimeout)
170172
interval = defaultInterval
173+
curlInterval = defaultCurlInterval
171174
)
172175

173176
// namespaceExists ensures that a specified namespace exists and is ready for use.

test/e2e/e2e_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ var _ = ginkgo.Describe("InferencePool", func() {
8484
}
8585

8686
return nil
87-
}, existsTimeout, interval).Should(gomega.Succeed())
87+
}, readyTimeout, curlInterval).Should(gomega.Succeed())
8888

8989
})
9090
})

0 commit comments

Comments
 (0)