Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Set APIVersion on the client, even when Ping fails #546

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

Merged
merged 1 commit into from
Sep 23, 2017

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Sep 20, 2017

Fixes #149

Refactor to support testing
Also add tests

@codecov-io
Copy link

codecov-io commented Sep 20, 2017

Codecov Report

Merging #546 into master will increase coverage by 0.14%.
The diff coverage is 79.31%.

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
+ Coverage   49.08%   49.23%   +0.14%     
==========================================
  Files         200      200              
  Lines       16447    16453       +6     
==========================================
+ Hits         8073     8100      +27     
+ Misses       7954     7933      -21     
  Partials      420      420

Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐄 Just one question 👼

t.Run(testcase.doc, func(t *testing.T) {
passRetriever := func(_, _ string, _ bool, attempts int) (passphrase string, giveup bool, err error) {
switch attempts {
case 0, 1, 2:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure I understand why those are here — well, it's for notary.passRetriever I guess, but those magic number do not help me why we should fail the 3 first time 😅

Copy link
Contributor Author

@dnephin dnephin Sep 21, 2017

Choose a reason for hiding this comment

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

There's really no significance, it could also be just 0

Copy link
Collaborator

Choose a reason for hiding this comment

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

🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Refactor to support testing
Also add tests

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Copy link
Collaborator

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@cpuguy83 cpuguy83 merged commit a41caad into docker:master Sep 23, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.10.0 milestone Sep 23, 2017
@dnephin dnephin deleted the fix-version-on-failure branch September 23, 2017 14:41
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.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.