Skip to content

Commit

Permalink
Fix test to ignore order of array assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Leon <[email protected]>
  • Loading branch information
tylerschultz authored and DennisDenuto committed Oct 5, 2016
1 parent bcd3fc9 commit e854d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/pkg/dir_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}))
Expand Down

0 comments on commit e854d76

Please sign in to comment.