From 4b6e0e936902ed23a5d22013f8e7fb168eac7b7a Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 12 Jan 2016 08:55:01 -0700 Subject: [PATCH] tls: Fix failing test --- caddy/setup/tls_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/caddy/setup/tls_test.go b/caddy/setup/tls_test.go index 3077da15..d8b2a4d9 100644 --- a/caddy/setup/tls_test.go +++ b/caddy/setup/tls_test.go @@ -64,12 +64,11 @@ func TestTLSParseBasic(t *testing.T) { } func TestTLSParseIncompleteParams(t *testing.T) { - // This doesn't do anything useful but is allowed in case the user wants to be explicit - // about TLS being enabled... + // Using tls without args is an error because it's unnecessary. c := NewTestController(`tls`) _, err := TLS(c) - if err != nil { - t.Errorf("Expected no error, but got %v", err) + if err == nil { + t.Error("Expected an error, but didn't get one") } }