fix rootcoord meta table unstable ut (#25126)

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2023-06-26 12:02:44 +08:00 committed by GitHub
parent c7b851f870
commit 2d029b7fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1478,7 +1478,8 @@ func TestMetaTable_EmtpyDatabaseName(t *testing.T) {
ret, err = mt.listCollectionFromCache("", false) ret, err = mt.listCollectionFromCache("", false)
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, 2, len(ret)) assert.Equal(t, 2, len(ret))
assert.Equal(t, []int64{ret[0].CollectionID, ret[1].CollectionID}, []int64{1, 2}) assert.Contains(t, []int64{1, 2}, ret[0].CollectionID)
assert.Contains(t, []int64{1, 2}, ret[1].CollectionID)
ret, err = mt.listCollectionFromCache("db2", false) ret, err = mt.listCollectionFromCache("db2", false)
assert.NoError(t, err) assert.NoError(t, err)