-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set a more reasonable default for gomega eventually's polling interval #3992
Comments
What would be the preferred approach ? using env vars or adding something in the e2e support init methods ? |
I don't have any preference. Maybe, using env vars makes it a bit more flexible as we can adjust the value depending on the test suite we run. |
I personally think the default 10ms doesn't make much sense for Camel K E2E in any way, it's too frequent to hit K8s API. Probably a sensible default would be 1s or so. What about hardcoding the default interval to 1s (or other appropriate value) but also enabling us to adjust it via the env vars? |
…ing interval apache#3992 This commit set a more reasonable default for gomega inetrnal timeout and poll interval used for e2e testing. The defaults are: - EventuallyTimeout is set to 1s (not changed) - EventuallyPollingInterval is set to 500ms - ConsistentlyDuration is set to 100ms (not changed) - EventuallyPollingInterval is set to 500ms Values can be configured via env vars: - E2E_DEFAULT_EVENTUALLY_TIMEOUT - E2E_DEFAULT_EVENTUALLY_POLLING_INTERVAL - E2E_DEFAULT_CONSISTENTLY_DURATION - E2E_DEFAULT_CONSISTENTLY_POLLING_INTERVAL
…ing interval #3992 This commit set a more reasonable default for gomega inetrnal timeout and poll interval used for e2e testing. The defaults are: - EventuallyTimeout is set to 1s (not changed) - EventuallyPollingInterval is set to 500ms - ConsistentlyDuration is set to 100ms (not changed) - EventuallyPollingInterval is set to 500ms Values can be configured via env vars: - E2E_DEFAULT_EVENTUALLY_TIMEOUT - E2E_DEFAULT_EVENTUALLY_POLLING_INTERVAL - E2E_DEFAULT_CONSISTENTLY_DURATION - E2E_DEFAULT_CONSISTENTLY_POLLING_INTERVAL
I noticed that in the e2e tests we don't set any value for the eventually's polling interval so by default is likely to be 10ms.
Given we have tests for which the timeout is set to minutes it could make sense to set a more reasonable poll interval.
The default can be programmatic defined by using
SetDefaultEventuallyPollingInterval
:or by setting some env vars:
The text was updated successfully, but these errors were encountered: