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 pull on ContainerStart wrapper used in tests #15511

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

jsoriano
Copy link
Member

ContainerStart wrapper used in tests was not waiting for the pull to
finish, causing flakiness, e.g. in TestDockerStart. Pull can be
waited to finish by calling to Close() in the response body. This is
also something that has to be done at some moment to avoid leaks.

Also add some more context on error messages.

ContainerStart wrapper used in tests was not waiting for the pull to
finish, causing flakiness, e.g. in the `TestDockerStart`.
@jsoriano jsoriano added review needs_backport PR is waiting to be backported to other branches. :Testing flaky-test Unstable or unreliable test cases. [zube]: In Review Team:Integrations Label for the Integrations team v7.6.0 labels Jan 13, 2020
@jsoriano jsoriano self-assigned this Jan 13, 2020
@jsoriano
Copy link
Member Author

jenkins, test this again please

@jsoriano jsoriano merged commit dd553b3 into elastic:master Jan 14, 2020
@jsoriano jsoriano deleted the fix-test-container-start branch January 14, 2020 13:07
jsoriano added a commit to jsoriano/beats that referenced this pull request Jan 14, 2020
ContainerStart wrapper used in tests was not waiting for the pull to
finish, causing flakiness, e.g. in TestDockerStart. Pull can be
waited to finish by calling to Close() in the response body. This is
also something that has to be done at some moment to avoid leaks.

Also add some more context on error messages.

(cherry picked from commit dd553b3)
@jsoriano jsoriano removed the needs_backport PR is waiting to be backported to other branches. label Jan 14, 2020
jsoriano added a commit that referenced this pull request Jan 14, 2020
ContainerStart wrapper used in tests was not waiting for the pull to
finish, causing flakiness, e.g. in TestDockerStart. Pull can be
waited to finish by calling to Close() in the response body. This is
also something that has to be done at some moment to avoid leaks.

Also add some more context on error messages.

(cherry picked from commit dd553b3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. review Team:Integrations Label for the Integrations team :Testing v7.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants