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 how TestForceNewCluster checks if a service is ready #1937

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

cyli
Copy link
Contributor

@cyli cyli commented Feb 8, 2017

This doesn't actually fix the flakey test yet - the pollServiceReady function is checking for all tasks on the node, instead of only the running tasks for that particular service, which masks the returned error.

The underlying cause is being fixed by @aaronlehmann in another PR.

…heck

only the tasks related to that service and to check if the number of running
tasks for that service = the number of desired tasks.

Signed-off-by: cyli <[email protected]>
@cyli cyli force-pushed the fix-force-new-cluster branch from 4909303 to eca7b97 Compare February 8, 2017 21:05
@codecov-io
Copy link

Codecov Report

Merging #1937 into master will increase coverage by <.01%.

@@            Coverage Diff             @@
##           master    #1937      +/-   ##
==========================================
+ Coverage   54.15%   54.16%   +<.01%     
==========================================
  Files         108      106       -2     
  Lines       18544    18460      -84     
==========================================
- Hits        10042     9998      -44     
+ Misses       7284     7238      -46     
- Partials     1218     1224       +6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed384f3...eca7b97. Read the comment docs.

@aaronlehmann
Copy link
Collaborator

Let's merge this one first.

LGTM

ping @LK4D4

@cyli cyli changed the title WIP: fix intermittent TestForceNewCluster failures Fix how TestForceNewCluster checks if a service is ready Feb 8, 2017
@LK4D4
Copy link
Contributor

LK4D4 commented Feb 8, 2017

LGTM

@LK4D4 LK4D4 merged commit 991bf36 into moby:master Feb 8, 2017
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.

4 participants