Skip to content

integration-cli/build: don't panic ;)#38411

Merged
AkihiroSuda merged 1 commit intomoby:masterfrom
kolyshkin:dont-panic
Dec 21, 2018
Merged

integration-cli/build: don't panic ;)#38411
AkihiroSuda merged 1 commit intomoby:masterfrom
kolyshkin:dont-panic

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

A lack of check in the test code can lead to a panic due to
len(ids) being 0.

Avoid the panic by adding appropriate checks. Note Assert() should be
used rather than Check() as if it fails we should not proceed with the
test.

Originally found in #38404.

A lack of check in the test code can lead to a panic due to
`len(ids)` being `0`.

Avoid the panic by adding appropriate checks. Note `Assert()` should be
used rather than `Check()` as if it fails we should not proceed with the
test.

Originally found in moby#38404.

Signed-off-by: Kir Kolyshkin <[email protected]>
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 21, 2018

Codecov Report

Merging #38411 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #38411      +/-   ##
==========================================
+ Coverage   36.58%   36.58%   +<.01%     
==========================================
  Files         608      608              
  Lines       44988    44988              
==========================================
+ Hits        16458    16460       +2     
+ Misses      26250    26249       -1     
+ Partials     2280     2279       -1

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@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 🐯

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.

5 participants