Skip to content

Commit 0b82490

Browse files
Mikalai Radchukm1kola
Mikalai Radchuk
authored andcommitted
Removes unnecessary HaveLen assertions
Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent a946081 commit 0b82490

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

internal/resolution/variable_sources/bundlesanddependencies/bundles_and_dependencies_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ var _ = Describe("BundlesAndDepsVariableSource", func() {
199199
bundleVariables = append(bundleVariables, v)
200200
}
201201
}
202-
Expect(bundleVariables).To(HaveLen(12))
203202
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"})))
204203

205204
// check dependencies for one of the bundles

internal/resolution/variable_sources/crdconstraints/crd_constraints_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ var _ = Describe("CRDUniquenessConstraintsVariableSource", func() {
247247
crdConstraintVariables = append(crdConstraintVariables, v)
248248
}
249249
}
250-
Expect(crdConstraintVariables).To(HaveLen(11))
251-
Expect(crdConstraintVariables).To(WithTransform(CollectGlobalConstraintVariableIDs, ContainElements([]string{
250+
Expect(crdConstraintVariables).To(WithTransform(CollectGlobalConstraintVariableIDs, ConsistOf([]string{
252251
"another-package package uniqueness",
253252
"bar-package package uniqueness",
254253
"test-package-2 package uniqueness",

0 commit comments

Comments
 (0)