Fix TestErrorCases to run all tests

Signed-off-by: John Howard <jhoward@microsoft.com>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
John Howard 2017-10-03 15:35:27 -07:00 committed by Vincent Demeester
parent d65ab869e8
commit d2c41f06c3
No known key found for this signature in database
GPG key ID: 083CC6FD6EB699A3

View file

@ -194,11 +194,7 @@ func TestErrorCases(t *testing.T) {
}
n := ast.AST.Children[0]
_, err = ParseInstruction(n)
if err != nil {
testutil.ErrorContains(t, err, c.expectedError)
return
}
t.Fatalf("No error when executing test %s", c.name)
testutil.ErrorContains(t, err, c.expectedError)
}
}