-
Notifications
You must be signed in to change notification settings - Fork 950
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
test: modify network test #2312
test: modify network test #2312
Conversation
modify network test, and more time to check the port mapping is successful. Signed-off-by: Rudy Zhang <rudyflyzhang@gmail.com>
Codecov Report
@@ 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
|
err := icmd.RunCommand("timeout", "5", "curl", "localhost:9999").Compare(expct) | ||
c.Assert(err, check.IsNil) | ||
success := false | ||
for i := 0; i < 60; i++ { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
LGTM |
Signed-off-by: Rudy Zhang rudyflyzhang@gmail.com
Ⅰ. 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