Return immediately from test if error is encountered
This commit is contained in:
parent
d12dfef527
commit
66695a0474
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ func TestParseConfig(t *testing.T) {
|
|||
} else {
|
||||
if err != nil {
|
||||
t.Errorf("got unexpected error: %v", err)
|
||||
return
|
||||
}
|
||||
if res.versionPrefix != tc.expect.versionPrefix {
|
||||
t.Errorf("got versionPrefix %s, expected %s", res.versionPrefix, tc.expect.versionPrefix)
|
||||
|
|
Loading…
Reference in a new issue