Commit eb3bbc40 authored by Matt Holt's avatar Matt Holt Committed by GitHub

Merge pull request #1036 from mholt/fix-errors-setup-test

Fix error which lead to skipping tests in 'errors.TestErrorsParse'
parents ba5aeab1 b830667a
...@@ -132,7 +132,7 @@ func TestErrorsParse(t *testing.T) { ...@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment