Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Fix unstable e2e test of dependency engine #135

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

My-pleasure
Copy link
Contributor

Because the instability of e2e test is mainly in these two places after the dependency conditions are satisfied:

  1. the update of appconfig
  2. the start of resource which accepts data.

So I expand Eventually's timeout and polling interval in these two places.

(By the way, I update CRD version to v1 instead of v1beta1.)

Signed-off-by: My-pleasure <dearqwq@qq.com>
@@ -204,7 +204,7 @@ var _ = Describe("Resource Dependency in an ApplicationConfiguration", func() {
func() error {
return k8sClient.Get(ctx, inFooKey, inFoo)
},
time.Second*15, time.Millisecond*500).Should(BeNil())
time.Second*60, time.Second*5).Should(BeNil())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polling interval set to 1s would be better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, and then the timeout value should be bigger? Because last time, it failed when timeout is 60s, polling interval is 5s.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5s should be fine.

Copy link
Member

@hongchaodeng hongchaodeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hongchaodeng hongchaodeng merged commit 977dce0 into crossplane:master Jul 23, 2020
@My-pleasure My-pleasure deleted the e2e-patch branch July 27, 2020 01:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants