Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix racy integration tests#8691

Merged
tiborvass merged 1 commit into
moby:masterfrom
crosbymichael:fix-integration-race
Oct 22, 2014
Merged

Fix racy integration tests#8691
tiborvass merged 1 commit into
moby:masterfrom
crosbymichael:fix-integration-race

Conversation

@crosbymichael

Copy link
Copy Markdown
Contributor

Do not run containers in the background in the integration tests if you
depend on the run completing. It is better especially if you just want
to ensure that the run has completed with a true to just run in
foreground and use a known name for the container to query it after it
has stopped.

The failures can be reproduced on most machines by giving your dind
container one core and a cpushare.

docker run -c 200 --cpuset 0 -ti --rm --privileged -e
DOCKER_GRAPHDRIVER=vfs docker hack/make.sh binary test-integration-cli

Signed-off-by: Michael Crosby [email protected]

Do not run containers in the background in the integration tests if you
depend on the run completing.  It is better especially if you just want
to ensure that the run has completed with a `true` to just run in
foreground and use a known name for the container to query it after it
has stopped.

The failures can be reproduced on most machines by giving your dind
container one core and a cpushare.

docker run -c 200 --cpuset 0 -ti --rm --privileged -e
DOCKER_GRAPHDRIVER=vfs docker hack/make.sh binary test-integration-cli

Signed-off-by: Michael Crosby <[email protected]>
@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@tiborvass

Copy link
Copy Markdown
Contributor

LGTM. Failed on master with the provided settings, and worked on this PR.

tiborvass added a commit that referenced this pull request Oct 22, 2014
@tiborvass tiborvass merged commit 47cb56f into moby:master Oct 22, 2014
@crosbymichael crosbymichael deleted the fix-integration-race branch October 22, 2014 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants