Skip to content

Conversation

@zhuangqh
Copy link
Contributor

Signed-off-by: Rudy Zhang [email protected]

Ⅰ. Describe what this PR did

modify network test, and more time to check the port mapping is
successful.

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

modified

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

modify network test, and more time to check the port mapping is
successful.

Signed-off-by: Rudy Zhang <[email protected]>
@codecov
Copy link

codecov bot commented Oct 15, 2018

Codecov Report

Merging #2312 into master will increase coverage by 4.59%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2312      +/-   ##
==========================================
+ Coverage   62.66%   67.25%   +4.59%     
==========================================
  Files         213      213              
  Lines       17464    17473       +9     
==========================================
+ Hits        10943    11752     +809     
+ Misses       5271     4323     -948     
- Partials     1250     1398     +148
Flag Coverage Δ
#criv1alpha1test 32.24% <ø> (?)
#criv1alpha2test 36.33% <ø> (+0.22%) ⬆️
#integrationtest 40.06% <ø> (+0.03%) ⬆️
#nodee2etest 33.58% <ø> (+0.12%) ⬆️
#unittest 23.2% <ø> (-0.02%) ⬇️
Impacted Files Coverage Δ
daemon/mgr/snapshot.go 89.85% <0%> (-4.35%) ⬇️
cri/v1alpha2/cri_wrapper.go 60% <0%> (-1.21%) ⬇️
storage/quota/grpquota.go 0% <0%> (ø) ⬆️
cri/v1alpha2/cri.go 68.36% <0%> (+0.24%) ⬆️
cri/v1alpha2/cri_utils.go 90.57% <0%> (+0.28%) ⬆️
daemon/mgr/container.go 57.72% <0%> (+0.49%) ⬆️
daemon/mgr/container_storage.go 59.81% <0%> (+0.69%) ⬆️
storage/quota/quota.go 49.21% <0%> (+1.12%) ⬆️
storage/quota/prjquota.go 27.51% <0%> (+2.34%) ⬆️
ctrd/watch.go 80.3% <0%> (+4.54%) ⬆️
... and 9 more

err := icmd.RunCommand("timeout", "5", "curl", "localhost:9999").Compare(expct)
c.Assert(err, check.IsNil)
success := false
for i := 0; i < 60; i++ {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will try 60 times?
Will it be so long?
Just double check. @zhuangqh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Often, this command would success in several tries. Try many times to make sure the network port mapping is fail....longest timeout is 6 minutes.

@allencloud
Copy link
Collaborator

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Oct 15, 2018
@allencloud allencloud merged commit 5d904f1 into AliyunContainerService:master Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

areas/network areas/test LGTM one maintainer or community participant agrees to merge the pull reuqest. size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants