mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
remove endpoints length check in TestValidateSecureEndpoints()
This commit is contained in:
parent
ad78a74c42
commit
8d01ac2816
@ -78,16 +78,11 @@ func TestValidateSecureEndpoints(t *testing.T) {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
secureEps, err := ValidateSecureEndpoints(*tlsInfo, test.endPoints)
|
||||
if test.expectedErr != (err != nil) {
|
||||
t.Errorf("Unexpected error, got: %v, want: %v", err, test.expectedError)
|
||||
t.Errorf("Unexpected error, got: %v, want: %v", err, test.expectedErr)
|
||||
}
|
||||
|
||||
if err == nil && !test.expectedErr {
|
||||
if len(secureEps) != len(test.expectedEndpoints) {
|
||||
t.Errorf("expected %v endpoints, got %v", len(test.expectedEndpoints), len(secureEps))
|
||||
}
|
||||
if !reflect.DeepEqual(test.expectedEndpoints, secureEps) {
|
||||
t.Errorf("expected endpoints %v, got %v", test.expectedEndpoints, secureEps)
|
||||
}
|
||||
if !reflect.DeepEqual(test.expectedEndpoints, secureEps) {
|
||||
t.Errorf("expected endpoints %v, got %v", test.expectedEndpoints, secureEps)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user