lib/httpserver: follow up after def0032c7d

This commit is contained in:
Aliaksandr Valialkin
2022-04-16 15:27:21 +03:00
parent def0032c7d
commit 7e4bdf31ba
6 changed files with 31 additions and 25 deletions

View File

@@ -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) {