summaryrefslogtreecommitdiffhomepage
path: root/caddytls/certificates_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddytls/certificates_test.go')
-rw-r--r--caddytls/certificates_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/caddytls/certificates_test.go b/caddytls/certificates_test.go
index 817d16496..5f8b17e18 100644
--- a/caddytls/certificates_test.go
+++ b/caddytls/certificates_test.go
@@ -43,10 +43,11 @@ func TestUnexportedGetCertificate(t *testing.T) {
t.Errorf("Didn't get wildcard cert for 'sub.example.com' or got the wrong one: %v, matched=%v, defaulted=%v", cert, matched, defaulted)
}
- // When no certificate matches and SNI is provided, return no certificate (should be TLS alert)
- if cert, matched, defaulted := cfg.getCertificate("nomatch"); matched || defaulted {
- t.Errorf("Expected matched=false, defaulted=false; but got matched=%v, defaulted=%v (cert: %v)", matched, defaulted, cert)
- }
+ // TODO: Re-implement this behavior when I'm not in the middle of upgrading for ACMEv2 support. :) (it was reverted in #2037)
+ // // When no certificate matches and SNI is provided, return no certificate (should be TLS alert)
+ // if cert, matched, defaulted := cfg.getCertificate("nomatch"); matched || defaulted {
+ // t.Errorf("Expected matched=false, defaulted=false; but got matched=%v, defaulted=%v (cert: %v)", matched, defaulted, cert)
+ // }
// When no certificate matches and SNI is NOT provided, a random is returned
if cert, matched, defaulted := cfg.getCertificate(""); matched || !defaulted {