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 packetbeat flaky tests #5200

Merged
merged 1 commit into from
Sep 20, 2017
Merged

Fix packetbeat flaky tests #5200

merged 1 commit into from
Sep 20, 2017

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Sep 19, 2017

Moved the shutdown timeout after stopping the flows, but before stopping
the transaction publishing. It needs to be after stopping the flows because
the tests rely on the shutdown sequence to create flow reports.


timeout := pb.config.ShutdownTimeout
if timeout > 0 {
defer func() {
Copy link
Member

Choose a reason for hiding this comment

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

The closure around the Sleep doesn't look to be necessary.

Moved the shutdown timeout after stopping the flows, but before stopping
the transaction publishing. It needs to be after stopping the flows because
the tests rely on the shutdown sequence to create flow reports.
@tsg tsg force-pushed the fix_packetbeat_tests branch from 726aafe to 12dd7c2 Compare September 19, 2017 12:28
@ruflin ruflin merged commit c0de062 into elastic:master Sep 20, 2017
tsg added a commit to tsg/beats that referenced this pull request Nov 15, 2017
Moved the shutdown timeout after stopping the flows, but before stopping
the transaction publishing. It needs to be after stopping the flows because
the tests rely on the shutdown sequence to create flow reports.

(cherry picked from commit c0de062)
exekias pushed a commit that referenced this pull request Nov 15, 2017
Moved the shutdown timeout after stopping the flows, but before stopping
the transaction publishing. It needs to be after stopping the flows because
the tests rely on the shutdown sequence to create flow reports.

(cherry picked from commit c0de062)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Moved the shutdown timeout after stopping the flows, but before stopping
the transaction publishing. It needs to be after stopping the flows because
the tests rely on the shutdown sequence to create flow reports.

(cherry picked from commit 954f3fa)
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.

3 participants