mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 10:13:39 +08:00
fix tls_test.go
This commit is contained in:
parent
b6c4178f0a
commit
e4ff77ed07
|
@ -42,15 +42,15 @@ func TestTLSParseBasic(t *testing.T) {
|
||||||
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
|
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
|
||||||
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
|
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
|
||||||
tls.TLS_RSA_WITH_AES_128_CBC_SHA,
|
tls.TLS_RSA_WITH_AES_128_CBC_SHA,
|
||||||
tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,
|
//tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,
|
||||||
tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA,
|
//tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA,
|
||||||
tls.TLS_FALLBACK_SCSV,
|
tls.TLS_FALLBACK_SCSV,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure count is correct (plus one for TLS_FALLBACK_SCSV)
|
// Ensure count is correct (plus one for TLS_FALLBACK_SCSV)
|
||||||
if len(c.TLS.Ciphers) != len(supportedCiphers)+1 {
|
if len(c.TLS.Ciphers) != len(supportedCiphers)-1 {
|
||||||
t.Errorf("Expected %v Ciphers (including TLS_FALLBACK_SCSV), got %v",
|
t.Errorf("Expected %v Ciphers (including TLS_FALLBACK_SCSV), got %v",
|
||||||
len(supportedCiphers)+1, len(c.TLS.Ciphers))
|
len(supportedCiphers)-1, len(c.TLS.Ciphers))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure ordering is correct
|
// Ensure ordering is correct
|
||||||
|
|
Loading…
Reference in New Issue
Block a user