mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
lib/httpserver: follow up after def0032c7d
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_validateCipherSuites(t *testing.T) {
|
||||
func TestCipherSuitesFromNames(t *testing.T) {
|
||||
type args struct {
|
||||
definedCipherSuites []string
|
||||
}
|
||||
@@ -65,9 +65,9 @@ func Test_validateCipherSuites(t *testing.T) {
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got, err := collectCipherSuites(tt.args.definedCipherSuites)
|
||||
got, err := cipherSuitesFromNames(tt.args.definedCipherSuites)
|
||||
if (err != nil) != tt.wantErr {
|
||||
t.Errorf("collectCipherSuites() error = %v, wantErr %v", err, tt.wantErr)
|
||||
t.Errorf("cipherSuitesFromNames() error = %v, wantErr %v", err, tt.wantErr)
|
||||
return
|
||||
}
|
||||
if !reflect.DeepEqual(got, tt.want) {
|
||||
|
||||
Reference in New Issue
Block a user