未验证 提交 dec68280 编写于 作者: C congqixia 提交者: GitHub

Use ElementMatch instead of Equal in unit test (#14997)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 c67c8b11
......@@ -38,12 +38,12 @@ func TestGroupChecker(t *testing.T) {
assert.Equal(t, 10*time.Millisecond, gc2.d)
list := <-signal
assert.Equal(t, []string{"1", "2"}, list)
assert.ElementsMatch(t, []string{"1", "2"}, list)
gc2.Remove("2")
list = <-signal
assert.Equal(t, []string{"1"}, list)
assert.ElementsMatch(t, []string{"1"}, list)
assert.NotPanics(t, func() {
gc1.Stop()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册