-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add integration test Signed-off-by: haojinming <jinming.hao@pingcap.com> * fix coverage report Signed-off-by: haojinming <jinming.hao@pingcap.com> * address review comment: use tmp file Signed-off-by: haojinming <jinming.hao@pingcap.com> * codecov upload multi files Signed-off-by: haojinming <jinming.hao@pingcap.com> * codecov upload multi files Signed-off-by: haojinming <jinming.hao@pingcap.com> * codecov upload multi files Signed-off-by: haojinming <jinming.hao@pingcap.com> * remove useless code Signed-off-by: haojinming <jinming.hao@pingcap.com> Signed-off-by: haojinming <jinming.hao@pingcap.com>
- Loading branch information
1 parent
9845e58
commit 57dc032
Showing
4 changed files
with
38 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2022 PingCAP, Inc. Licensed under Apache-2.0. | ||
|
||
package httputil | ||
|
||
import ( | ||
"crypto/tls" | ||
"net/http" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
// TestHttpClient test the tls config | ||
func TestHttpClient(t *testing.T) { | ||
tlsConf := tls.Config{} | ||
cli := NewClient(&tlsConf) | ||
require.Equal(t, &tlsConf, cli.Transport.(*http.Transport).TLSClientConfig) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters