Skip to content

Commit

Permalink
Fix v3 list service instances test
Browse files Browse the repository at this point in the history
* test failed two times in a row because 3 instances were returned, but only 2 expected
* given the current test setup (space is shared between different tests), we cannot guarantee that exactly 2 instances are returned -> use contain matcher to relax assertion
  • Loading branch information
jochenehret committed Jan 8, 2025
1 parent 2445bf0 commit 82cdbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/service_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ var _ = V3Describe("service instances", func() {
err := json.Unmarshal(listService.Out.Contents(), &res)
Expect(err).To(BeNil())

Expect(res.Resources).To(ConsistOf(expectedResources))
Expect(res.Resources).To(ContainElements(expectedResources))
})
})

0 comments on commit 82cdbc4

Please sign in to comment.