Skip to content

Commit 94262e8

Browse files
authored
Merge pull request #372 from beautytiger/dev-191022-fixtest
fix wrong compare expression in testcase in pkg controller
2 parents 84eb762 + eb7e097 commit 94262e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/topology_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ func volumeNodeAffinitiesEqual(n1, n2 *v1.VolumeNodeAffinity) bool {
14851485
if (ns1 == nil) && (ns2 == nil) {
14861486
return true
14871487
}
1488-
if len(ns1.NodeSelectorTerms) != len(ns1.NodeSelectorTerms) {
1488+
if len(ns1.NodeSelectorTerms) != len(ns2.NodeSelectorTerms) {
14891489
return false
14901490
}
14911491
match := func(terms1, terms2 []v1.NodeSelectorTerm) bool {

0 commit comments

Comments
 (0)