From 11ce80ca2940f3d81ea4422134051480cd0f2b42 Mon Sep 17 00:00:00 2001 From: congqixia Date: Thu, 28 Sep 2023 00:17:20 +0800 Subject: [PATCH] Fix e2e case error message due to milvus change (#590) Signed-off-by: Congqi Xia --- test/testcases/index_test.go | 4 ++-- test/testcases/load_release_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/testcases/index_test.go b/test/testcases/index_test.go index f13e71d8..9a791133 100644 --- a/test/testcases/index_test.go +++ b/test/testcases/index_test.go @@ -296,7 +296,7 @@ func TestCreateIndexNotSupportedField(t *testing.T) { // create index idx, _ := entity.NewIndexHNSW(entity.L2, 8, 96) err := mc.CreateIndex(ctx, collName, common.DefaultFloatFieldName, idx, false) - common.CheckErr(t, err, false, "index type not match: expected=Trie, actual=HNSW: invalid parameter") + common.CheckErr(t, err, false, "index type not match") } // test create index with invalid params @@ -447,7 +447,7 @@ func TestDropIndex(t *testing.T) { errDrop := mc.DropIndex(ctx, collName, common.DefaultFloatVecFieldName) common.CheckErr(t, errDrop, true) indexes, errDescribe := mc.DescribeIndex(ctx, collName, common.DefaultFloatVecFieldName) - common.CheckErr(t, errDescribe, false, "index doesn't exist, collectionID") + common.CheckErr(t, errDescribe, false, "index not found") require.Nil(t, indexes) } diff --git a/test/testcases/load_release_test.go b/test/testcases/load_release_test.go index 64bf9966..06441a9f 100644 --- a/test/testcases/load_release_test.go +++ b/test/testcases/load_release_test.go @@ -85,11 +85,11 @@ func TestLoadCollectionWithoutIndex(t *testing.T) { collName, _ := createCollectionWithDataIndex(ctx, t, mc, true, false) errLoad := mc.LoadCollection(ctx, collName, true) - common.CheckErr(t, errLoad, false, "index doesn't exist") + common.CheckErr(t, errLoad, false, "index not found") // load partitions without index errLoadPartition := mc.LoadPartitions(ctx, collName, []string{common.DefaultPartition}, true) - common.CheckErr(t, errLoadPartition, false, "index doesn't exist") + common.CheckErr(t, errLoadPartition, false, "index not found") } // load collection with multi partitions