From e854d76139719fafffcc7a3b505b02d28e5f69bc Mon Sep 17 00:00:00 2001 From: Tyler Schultz Date: Wed, 5 Oct 2016 09:54:43 -0700 Subject: [PATCH] Fix test to ignore order of array assertion Signed-off-by: Dennis Leon --- release/pkg/dir_reader_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/pkg/dir_reader_test.go b/release/pkg/dir_reader_test.go index 5cfd598b3..19130aa25 100644 --- a/release/pkg/dir_reader_test.go +++ b/release/pkg/dir_reader_test.go @@ -59,12 +59,12 @@ excluded_files: [ex-file1, ex-file2] Expect(err).NotTo(HaveOccurred()) Expect(pkg).To(Equal(NewPackage(NewResource("name", "fp", archive), []string{"pkg1", "pkg2"}))) - Expect(collectedFiles).To(Equal([]File{ + Expect(collectedFiles).To(ConsistOf( // does not include spec File{Path: "/dir/packaging", DirPath: "/dir", RelativePath: "packaging", ExcludeMode: true}, File{Path: "/src/in-file1", DirPath: "/src", RelativePath: "in-file1"}, File{Path: "/src/in-file2", DirPath: "/src", RelativePath: "in-file2"}, - })) + )) Expect(collectedPrepFiles).To(BeEmpty()) Expect(collectedChunks).To(Equal([]string{"pkg1", "pkg2"}))