-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix dialer test error #1784
Fix dialer test error #1784
Conversation
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
[CHATOPS:HELP] ChatOps commands.
|
Codecov ReportBase: 29.45% // Head: 30.31% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## test/fix-race-from-1728 #1784 +/- ##
===========================================================
+ Coverage 29.45% 30.31% +0.86%
===========================================================
Files 370 373 +3
Lines 33295 33838 +543
===========================================================
+ Hits 9807 10258 +451
- Misses 23103 23173 +70
- Partials 385 407 +22
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: kevindiu <[email protected]>
Deploying with Cloudflare Pages
|
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.
LGTM
@@ -950,7 +958,7 @@ func Test_dialer_cachedDialer(t *testing.T) { | |||
} | |||
return nil | |||
}, | |||
afterFunc: func(args) { | |||
afterFunc: func(t *testing.T) { |
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.
🚫 [golangci] reported by reviewdog 🐶
test helper function should start from t.Helper() (thelper)
}, | ||
beforeFunc: func(a args) { | ||
beforeFunc: func(t *testing.T) { |
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.
🚫 [golangci] reported by reviewdog 🐶
test helper function should start from t.Helper() (thelper)
checkFunc: func(w want, c *tls.Conn, err error) error { | ||
if err == nil { | ||
return errors.New("Handshake completed even server has been gone") | ||
} | ||
return nil | ||
}, | ||
afterFunc: func(a args) { | ||
afterFunc: func(t1 *testing.T) { |
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.
🚫 [golangci] reported by reviewdog 🐶
parameter *testing.T should have name t (thelper)
* fix test error for PR#1768 Signed-off-by: kpango <[email protected]> * fix index test build error Signed-off-by: kevindiu <[email protected]> * regenerate backup files to fix info test error Signed-off-by: kevindiu <[email protected]> * disable log for save index test to avoid error log Signed-off-by: kevindiu <[email protected]> * fix info test by correct branch name & fix Get() impl Signed-off-by: kevindiu <[email protected]> * Fix dialer test error (#1784) * fix dialer test error Signed-off-by: kevindiu <[email protected]> * revert unnecessary changes Signed-off-by: kevindiu <[email protected]> * correct dialer test impl Signed-off-by: kevindiu <[email protected]> * Fix formatter Signed-off-by: kevindiu <[email protected]> * fix comment Signed-off-by: kevindiu <[email protected]> * remove backup file for test Signed-off-by: kevindiu <[email protected]> Signed-off-by: kpango <[email protected]> Signed-off-by: kevindiu <[email protected]> Co-authored-by: kpango <[email protected]>
* fix test error for PR#1768 Signed-off-by: kpango <[email protected]> * fix index test build error Signed-off-by: kevindiu <[email protected]> * regenerate backup files to fix info test error Signed-off-by: kevindiu <[email protected]> * disable log for save index test to avoid error log Signed-off-by: kevindiu <[email protected]> * fix info test by correct branch name & fix Get() impl Signed-off-by: kevindiu <[email protected]> * Fix dialer test error (#1784) * fix dialer test error Signed-off-by: kevindiu <[email protected]> * revert unnecessary changes Signed-off-by: kevindiu <[email protected]> * correct dialer test impl Signed-off-by: kevindiu <[email protected]> * Fix formatter Signed-off-by: kevindiu <[email protected]> * fix comment Signed-off-by: kevindiu <[email protected]> * remove backup file for test Signed-off-by: kevindiu <[email protected]> Signed-off-by: kpango <[email protected]> Signed-off-by: kevindiu <[email protected]> Co-authored-by: kpango <[email protected]> Signed-off-by: kpango <[email protected]>
Description:
SSIA
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: