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

fix unstable gelf test #1180

Merged
merged 2 commits into from
May 18, 2023
Merged

fix unstable gelf test #1180

merged 2 commits into from
May 18, 2023

Conversation

huangminghuang
Copy link
Contributor

@huangminghuang huangminghuang commented May 16, 2023

This PR fixes the stableness of gelf test because UDP packets can be lossy even in localhost.

Resolves #1179

@heifner heifner added this to the Leap v5.0.0-rc1 milestone May 16, 2023
@heifner heifner added the OCI Work exclusive to OCI team label May 16, 2023
@heifner heifner requested review from jgiszczak and ScottBailey May 16, 2023 14:13
assert received_log in stderr_line, "received GELF log entry does not match that of from stderr"
assert len(received_logs) > 10, "Not enough gelf logs are received"
for received_log in received_logs:
assert received_log in stderr_txt, "received GELF log entry does not match that of from stderr"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert received_log in stderr_txt, "received GELF log entry does not match that of from stderr"
assert received_log in stderr_txt, "received GELF log entry does not match that of stderr"

Copy link
Contributor

@ScottBailey ScottBailey left a comment

Choose a reason for hiding this comment

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

Minor grammatical suggestion.

@huangminghuang huangminghuang merged commit 530c9f1 into main May 18, 2023
@huangminghuang huangminghuang deleted the huangminghuang/gelf-test-fix branch May 18, 2023 16:05
@bhazzard bhazzard removed this from the Leap v5.0.0-rc1 milestone Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test: gelf_test failure
5 participants