Skip to content

Commit af39f59

Browse files
committed
test(crd): align parser integration test error handling with existing tests
Ignore packages.TypeError when asserting package errors in the new alias resolution test, matching the existing parser_integration_test behavior. This avoids failures caused by dependency type-check errors (e.g. k8s.io/apimachinery) unrelated to the test fixture.
1 parent 3ede5b1 commit af39f59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/crd/parser_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ var _ = Describe("CRD Generation From Parsing to CustomResourceDefinition", func
260260
By("requesting that the package be parsed")
261261
parser.NeedPackage(pkg)
262262

263-
By("checking that no errors occurred along the way")
264-
Expect(packageErrors(pkg)).NotTo(HaveOccurred())
263+
By("checking that no non-type errors occurred along the way")
264+
Expect(packageErrors(pkg, packages.TypeError)).NotTo(HaveOccurred())
265265

266266
By("requesting that the CRD be generated")
267267
groupKind := schema.GroupKind{Kind: "Repro", Group: "repro.io"}

0 commit comments

Comments
 (0)