Signed-off-by: John Howard <jhoward@microsoft.com>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
| ... | ... |
@@ -194,11 +194,7 @@ func TestErrorCases(t *testing.T) {
|
| 194 | 194 |
} |
| 195 | 195 |
n := ast.AST.Children[0] |
| 196 | 196 |
_, err = ParseInstruction(n) |
| 197 |
- if err != nil {
|
|
| 198 |
- testutil.ErrorContains(t, err, c.expectedError) |
|
| 199 |
- return |
|
| 200 |
- } |
|
| 201 |
- t.Fatalf("No error when executing test %s", c.name)
|
|
| 197 |
+ testutil.ErrorContains(t, err, c.expectedError) |
|
| 202 | 198 |
} |
| 203 | 199 |
|
| 204 | 200 |
} |