Merge pull request #35138 from vdemeester/foo

Carry 35078 : Fix TestErrorCases to run all tests
Upstream-commit: 513f0e6c26cfac31d41a1eb249758907950cb7be
Component: engine
This commit is contained in:
Yong Tang
2017-10-09 12:16:16 -07:00
committed by GitHub
@@ -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)
}
}