Skip to content

Commit

Permalink
Avoid slice ordering
Browse files Browse the repository at this point in the history
Signed-off-by: Baiju Muthukadan <baiju.m.mail@gmail.com>
  • Loading branch information
baijum committed Jun 9, 2021
1 parent 8229485 commit 52aca7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/reconcile/pipeline/context/impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ var _ = Describe("Context", func() {
applications, err := ctx.Applications()
Expect(err).NotTo(HaveOccurred())
Expect(applications).To(HaveLen(2))
Expect(applications[0].Resource()).To(Equal(u1))

Expect(applications[0].Resource().GetName()).NotTo(Equal(applications[1].Resource().GetName()))
Expect(applications[0].Resource()).Should(BeElementOf(u1, u2))
Expect(applications[1].Resource()).Should(BeElementOf(u1, u2))
Expect(applications[0].ContainersPath()).To(Equal(expectedContainerPath))
Expect(applications[1].Resource()).To(Equal(u2))
Expect(applications[1].ContainersPath()).To(Equal(expectedContainerPath))
},
Entry("no binding path specified", nil, defaultContainerPath),
Expand Down

0 comments on commit 52aca7f

Please sign in to comment.