From b830667a25ffea95bdf2a31574685063bdb34d42 Mon Sep 17 00:00:00 2001 From: Volodymyr Galkin Date: Mon, 15 Aug 2016 16:44:34 +0300 Subject: [PATCH] Fix error which lead to skipping tests in 'errors.TestErrorsParse' --- caddyhttp/errors/setup_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/errors/setup_test.go b/caddyhttp/errors/setup_test.go index 233b62e3..24942cd8 100644 --- a/caddyhttp/errors/setup_test.go +++ b/caddyhttp/errors/setup_test.go @@ -132,7 +132,7 @@ func TestErrorsParse(t *testing.T) { t.Errorf("Test %d didn't error, but it should have", i) } else if err != nil && !test.shouldErr { t.Errorf("Test %d errored, but it shouldn't have; got '%v'", i, err) - } else { + } else if err != nil && test.shouldErr { continue } if actualErrorsRule.LogFile != test.expectedErrorHandler.LogFile {