Skip to content

Commit fccee29

Browse files
committed
deepcopy_integration_test: Generate more helpful output on failure
1 parent a410b23 commit fccee29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deepcopy/deepcopy_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ var _ = Describe("CRD Generation From Parsing to CustomResourceDefinition", func
8484
Expect(err).NotTo(HaveOccurred())
8585

8686
By("comparing the two")
87-
Expect(outContents).To(Equal(expectedFile), "generated code not as expected, check pkg/deepcopy/testdata/README.md for more details.\n\nDiff:\n\n%s", cmp.Diff(outContents, expectedFile))
87+
Expect(string(outContents)).To(Equal(string(expectedFile)), "generated code not as expected, check pkg/deepcopy/testdata/README.md for more details.\n\nDiff:\n\n%s", cmp.Diff(outContents, expectedFile))
8888
})
8989
})

0 commit comments

Comments
 (0)