fix: [skip-e2e] Fix unstable policy_test (#32883)

See also: #32849

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2024-05-09 15:39:40 +08:00 committed by GitHub
parent 8bb58d0460
commit bc015df962
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -467,8 +467,8 @@ func TestAssignByCountPolicySuite(t *testing.T) {
func (s *AssignByCountPolicySuite) SetupSubTest() {
s.curCluster = []*NodeChannelInfo{
{1, getChannels(map[string]int64{"ch-1": 1, "ch-2": 1, "ch-3": 2})},
{2, getChannels(map[string]int64{"ch-3": 1, "ch-4": 1, "ch-5": 4})},
{1, getChannels(map[string]int64{"ch-1": 1, "ch-2": 1, "ch-3": 1})},
{2, getChannels(map[string]int64{"ch-4": 1, "ch-5": 1, "ch-6": 4})},
{NodeID: 3, Channels: map[string]RWChannel{}},
}
}