cleanup(controller): use IsSuperset to avoid interim slice

This commit is contained in:
binacs
2023-02-19 21:49:58 +08:00
parent d6fe718e19
commit 84ff621309
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ func CheckQueueEq(lhs []string, rhs TimedQueue) bool {
}
func CheckSetEq(lhs, rhs sets.String) bool {
return lhs.HasAll(rhs.List()...) && rhs.HasAll(lhs.List()...)
return lhs.IsSuperset(rhs) && rhs.IsSuperset(lhs)
}
func TestAddNode(t *testing.T) {