Skip to content

Commit e854d76

Browse files
tylerschultzDennisDenuto
authored andcommitted
Fix test to ignore order of array assertion
Signed-off-by: Dennis Leon <dleon@pivotal.io>
1 parent bcd3fc9 commit e854d76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release/pkg/dir_reader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ excluded_files: [ex-file1, ex-file2]
5959
Expect(err).NotTo(HaveOccurred())
6060
Expect(pkg).To(Equal(NewPackage(NewResource("name", "fp", archive), []string{"pkg1", "pkg2"})))
6161

62-
Expect(collectedFiles).To(Equal([]File{
62+
Expect(collectedFiles).To(ConsistOf(
6363
// does not include spec
6464
File{Path: "/dir/packaging", DirPath: "/dir", RelativePath: "packaging", ExcludeMode: true},
6565
File{Path: "/src/in-file1", DirPath: "/src", RelativePath: "in-file1"},
6666
File{Path: "/src/in-file2", DirPath: "/src", RelativePath: "in-file2"},
67-
}))
67+
))
6868

6969
Expect(collectedPrepFiles).To(BeEmpty())
7070
Expect(collectedChunks).To(Equal([]string{"pkg1", "pkg2"}))

0 commit comments

Comments
 (0)