Skip to content

Fix pull on ContainerStart wrapper used in tests#15511

Merged
jsoriano merged 1 commit intoelastic:masterfrom
jsoriano:fix-test-container-start
Jan 14, 2020
Merged

Fix pull on ContainerStart wrapper used in tests#15511
jsoriano merged 1 commit intoelastic:masterfrom
jsoriano:fix-test-container-start

Conversation

@jsoriano
Copy link
Copy Markdown
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
Copy Markdown
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