Skip to content
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

Make test less flaky #229

Merged
merged 1 commit into from Jun 23, 2022
Merged

Make test less flaky #229

merged 1 commit into from Jun 23, 2022

Conversation

basil
Copy link
Member

@basil basil commented Jun 22, 2022

Before adding this sleep, this test would flake about half the time as in this run. After adding this sleep I have run the test 10 times in a row without any flakes.

@basil basil merged commit ef5df69 into jenkinsci:master Jun 23, 2022
@basil basil deleted the flake branch June 23, 2022 00:04
@@ -40,6 +40,7 @@ public void testSimpleConnection() throws Exception {
makeRequest("http://localhost:"+port+"/examples/CountRequestsServlet");

// check the log file
Thread.sleep(5000);
Copy link
Member

Choose a reason for hiding this comment

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

would be better to add a loop retrying every maybe 100ms then if keep failing after 5000ms
because this add unconditionally 5s to the build

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not interested in doing that.

Copy link
Member

Choose a reason for hiding this comment

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

recorded in #231 for future improvement

@olamy
Copy link
Member

olamy commented Jun 23, 2022

why making a PR if you do not wait for review?

@basil
Copy link
Member Author

basil commented Jun 23, 2022

I am not interested.

@olamy
Copy link
Member

olamy commented Jun 23, 2022

I am not interested.

sounds like a polite, technical and community oriented answer....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants