Skip to content

Comments

fix the race condition in the integration test TestRunContainerWithBridgeNone#37438

Merged
vdemeester merged 1 commit intomoby:masterfrom
adshmh:fix-flaky-test-TestRunContainerWithBridgeNone
Aug 1, 2018
Merged

fix the race condition in the integration test TestRunContainerWithBridgeNone#37438
vdemeester merged 1 commit intomoby:masterfrom
adshmh:fix-flaky-test-TestRunContainerWithBridgeNone

Conversation

@adshmh
Copy link
Contributor

@adshmh adshmh commented Jul 11, 2018

- What I did
This is an attempt at fixing the race condition in the integration test TestRunContainerWithBridgeNone, pointed out here: #37246 (comment). closes #37246

- How I did it

  • Modified the test to check that network namespaces of the host and container are the same, instead of comparing lists of network interfaces.
  • Moved the test to integration/network in the meantime.

- How to verify it
Running the integration test TestRunContainerWithBridgeNone should provide consistent results, as it does not contain a race condition anymore.

- Description for the changelog
Fixed the flaky test TestRunContainerWithBridgeNone

- A picture of a cute animal (not mandatory but encouraged)

@codecov
Copy link

codecov bot commented Aug 1, 2018

Codecov Report

Merging #37438 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #37438      +/-   ##
==========================================
- Coverage   34.96%   34.92%   -0.04%     
==========================================
  Files         610      610              
  Lines       44886    44870      -16     
==========================================
- Hits        15693    15671      -22     
- Misses      27075    27078       +3     
- Partials     2118     2121       +3

Copy link
Contributor

@boaz0 boaz0 left a comment

Choose a reason for hiding this comment

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

LGTM 🥇

@coolljt0725
Copy link
Contributor

LGTM

Copy link
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 🐸

@vdemeester vdemeester merged commit 9149ef6 into moby:master Aug 1, 2018
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.

Flaky test: TestRunContainerWithBridgeNone

7 participants