We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bcbdd6 commit 4b6e0e9Copy full SHA for 4b6e0e9
caddy/setup/tls_test.go
@@ -64,12 +64,11 @@ func TestTLSParseBasic(t *testing.T) {
64
}
65
66
func TestTLSParseIncompleteParams(t *testing.T) {
67
- // This doesn't do anything useful but is allowed in case the user wants to be explicit
68
- // about TLS being enabled...
+ // Using tls without args is an error because it's unnecessary.
69
c := NewTestController(`tls`)
70
_, err := TLS(c)
71
- if err != nil {
72
- t.Errorf("Expected no error, but got %v", err)
+ if err == nil {
+ t.Error("Expected an error, but didn't get one")
73
74
75
0 commit comments