-
Notifications
You must be signed in to change notification settings - Fork 931
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
Change the test to polling instead of just a single sleep [main] #3112
base: main
Are you sure you want to change the base?
Change the test to polling instead of just a single sleep [main] #3112
Conversation
9ebb964
to
586bd85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this idea, let's see if this helps.
issue (blocking): I tried running this and found on occasion it failed, I think it's due to the order the apps can appear in the output. Sometimes APP2 comes first:
The test may need to be changed to validate that both appear but not rely on the order of them. |
586bd85
to
69acaba
Compare
ContainSubstring(`%s\s+%s\s+create succeeded\s*\n`, appName1, bindingName1), | ||
ContainSubstring(`%s\s+%s\s+create succeeded\s*\n`, appName2, bindingName2), | ||
)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ContainSubstring(`%s\s+%s\s+create succeeded\s*\n`, appName1, bindingName1), | |
ContainSubstring(`%s\s+%s\s+create succeeded\s*\n`, appName2, bindingName2), | |
)) | |
)) | |
sessionContents := string(session.Out.Contents()) | |
Expect(strings.Contains(sessionContents, fmt.Sprintf(`%s %s create succeeded`, appName1, bindingName1))).To(BeTrue()) | |
Expect(strings.Contains(sessionContents, fmt.Sprintf(`%s %s create succeeded`, appName2, bindingName2))).To(BeTrue()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found the test can fail if app2 is listed first. If we get the session contents and search it for substrings the order doesn't matter.
589b428
to
16ec389
Compare
2e4ad12
to
0e35f04
Compare
0e35f04
to
1f75b01
Compare
- Avoid flakyness due to time it takes to bind a service Signed-off-by: João Pereira <joaod@vmware.com>
1f75b01
to
c474fbb
Compare
Description of the Change