mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-08 23:53:59 +08:00
Fix error which lead to skipping tests in 'errors.TestErrorsParse'
This commit is contained in:
parent
ba5aeab19d
commit
b830667a25
|
@ -132,7 +132,7 @@ func TestErrorsParse(t *testing.T) {
|
||||||
t.Errorf("Test %d didn't error, but it should have", i)
|
t.Errorf("Test %d didn't error, but it should have", i)
|
||||||
} else if err != nil && !test.shouldErr {
|
} else if err != nil && !test.shouldErr {
|
||||||
t.Errorf("Test %d errored, but it shouldn't have; got '%v'", i, err)
|
t.Errorf("Test %d errored, but it shouldn't have; got '%v'", i, err)
|
||||||
} else {
|
} else if err != nil && test.shouldErr {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if actualErrorsRule.LogFile != test.expectedErrorHandler.LogFile {
|
if actualErrorsRule.LogFile != test.expectedErrorHandler.LogFile {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user