fix typos

This commit is contained in:
SataQiu 2018-11-06 15:58:56 +08:00
parent b4c5af1b85
commit 76b5a7b45e
2 changed files with 2 additions and 2 deletions

View file

@ -186,7 +186,7 @@ func TestGetPemCertificate(t *testing.T) {
Data map[string][]byte
eErr bool
}{
{"sceret_not_exist", "default/foo_secret_not_exist", nil, true},
{"secret_not_exist", "default/foo_secret_not_exist", nil, true},
{"data_not_complete_all_not_exist", "default/foo_secret", map[string][]byte{}, true},
{"data_not_complete_TLSCertKey_not_exist", "default/foo_secret", map[string][]byte{api.TLSPrivateKeyKey: dKey, tlscaName: dCa}, false},
{"data_not_complete_TLSCertKeyAndCA_not_exist", "default/foo_secret", map[string][]byte{api.TLSPrivateKeyKey: dKey}, true},

View file

@ -35,7 +35,7 @@ func TestFilterErrors(t *testing.T) {
}
}
func TestProxytTimeoutParsing(t *testing.T) {
func TestProxyTimeoutParsing(t *testing.T) {
testCases := map[string]struct {
input string
expect time.Duration // duration in seconds