Skip to content

Commit

Permalink
fix: flaky error order in test (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
worstell authored Apr 15, 2024
1 parent c7d1b4d commit c3a5e67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildengine/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ func assertBuildProtoErrors(msgs ...string) assertion {
}

// normalize results
errs := make([]error, 0, len(errorList.Errors))
for _, e := range errorList.Errors {
errs = append(errs, *e)
}
schema.SortErrorsByPosition(errs)

for _, e := range errorList.Errors {
e.EndColumn = 0
}
Expand Down

0 comments on commit c3a5e67

Please sign in to comment.