We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a5b86 commit a259a75Copy full SHA for a259a75
staging/src/k8s.io/dynamic-resource-allocation/structured/allocator_test.go
@@ -921,12 +921,7 @@ func TestAllocator(t *testing.T) {
921
matchError = gomega.Not(gomega.HaveOccurred())
922
}
923
g.Expect(err).To(matchError)
924
- matchResults := gomega.HaveExactElements(tc.expectResults...)
925
- if len(tc.expectResults) == 0 {
926
- // Workaround for https://github.com/onsi/gomega/issues/771.
927
- matchResults = gomega.BeEmpty()
928
- }
929
- g.Expect(results).To(matchResults)
+ g.Expect(results).To(gomega.ConsistOf(tc.expectResults...))
930
931
// Objects that the allocator had access to should not have been modified.
932
g.Expect(toAllocate.claims).To(gomega.HaveExactElements(tc.claimsToAllocate))
0 commit comments