Fix TestErrorCases to run all tests
Signed-off-by: John Howard <jhoward@microsoft.com> Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: d2c41f06c36dc24b2170fef365563d64cc5bd8ec Component: engine
This commit is contained in:
committed by
Vincent Demeester
parent
7bcc658be1
commit
4d1cde4541
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user