Skip to content

Commit

Permalink
Removes unnecessary HaveLen assertions
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Jun 27, 2023
1 parent a946081 commit 0b82490
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ var _ = Describe("BundlesAndDepsVariableSource", func() {
bundleVariables = append(bundleVariables, v)
}
}
Expect(bundleVariables).To(HaveLen(12))
Expect(bundleVariables).To(WithTransform(CollectBundleVariableIDs, Equal([]string{"bundle-2", "bundle-1", "bundle-15", "bundle-16", "bundle-17", "bundle-9", "bundle-8", "bundle-7", "bundle-5", "bundle-4", "bundle-11", "bundle-10"})))

// check dependencies for one of the bundles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ var _ = Describe("CRDUniquenessConstraintsVariableSource", func() {
crdConstraintVariables = append(crdConstraintVariables, v)
}
}
Expect(crdConstraintVariables).To(HaveLen(11))
Expect(crdConstraintVariables).To(WithTransform(CollectGlobalConstraintVariableIDs, ContainElements([]string{
Expect(crdConstraintVariables).To(WithTransform(CollectGlobalConstraintVariableIDs, ConsistOf([]string{
"another-package package uniqueness",
"bar-package package uniqueness",
"test-package-2 package uniqueness",
Expand Down

0 comments on commit 0b82490

Please sign in to comment.