mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Merge pull request #1036 from mholt/fix-errors-setup-test
Fix error which lead to skipping tests in 'errors.TestErrorsParse'
This commit is contained in:
commit
eb3bbc409f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue