diff --git a/buildengine/build_test.go b/buildengine/build_test.go index 9b973d175d..c7f4b85a78 100644 --- a/buildengine/build_test.go +++ b/buildengine/build_test.go @@ -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 }